diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-03-07 18:01:01 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-03-07 18:07:11 +0300 |
commit | be84be4a35fa99cca7e81e6dd21516a324cca413 (patch) | |
tree | fb9b97ca44bd4f7e51b5317bc0ecb3024f769186 /drivers/spi/spi-npcm-pspi.c | |
parent | 14fe5a98fb24192f73639590d9d3cdb5640d48db (diff) | |
download | linux-be84be4a35fa99cca7e81e6dd21516a324cca413.tar.xz |
spi: Introduce SPI_INVALID_CS and is_valid_cs()
The SPI core inconsistently uses the marker value for unused chip select
pin. Define a constant (with appropriate type) and introduce is_valid_cs()
helper function to avoid spreading this inconsistency in the future.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20240307150256.3789138-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-npcm-pspi.c')
0 files changed, 0 insertions, 0 deletions