spi: Introduce spi_for_each_valid_cs() in order of deduplication
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Apr 2024 19:31:20 +0000 (22:31 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 15 Apr 2024 23:45:13 +0000 (08:45 +0900)
commitd707530b1ea518e23c7aa7b50ee79231f2964da0
tree7e6d87839c2885dcfcfe611d752cf76b53490b44
parente81582c080ddec3359bc6726291e62a1ba8b7350
spi: Introduce spi_for_each_valid_cs() in order of deduplication

In order of deduplication and better maintenance introduce a new
spi_for_each_valid_cs() helper macro.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240415193340.1279360-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c