spi: Extract spi_toggle_csgpiod() helper for better maintanance
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 15 Apr 2024 19:31:19 +0000 (22:31 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 15 Apr 2024 23:45:12 +0000 (08:45 +0900)
commite81582c080ddec3359bc6726291e62a1ba8b7350
tree1dea2f62663c8e4bb90b528a495c6ec86ae8eefe
parentdf3431fd379dcc3b231bd109a55948c27474478d
spi: Extract spi_toggle_csgpiod() helper for better maintanance

The multi-CS support splits the comment and the code in the spi_set_cs().
To avoid this in the future extract spi_toggle_csgpiod() helper.

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