]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Group cs_change and cs_off flags together in struct spi_transfer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 8 Sep 2022 13:05:18 +0000 (16:05 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 8 Sep 2022 14:25:23 +0000 (15:25 +0100)
commitd0f236e9c55252e5a4cee3cc0d30571155165a3d
tree2110e67f4affad9ac71d6f32f53328be5425a563
parentd13ad7f95d72b43c3f52414b414dd54627d7e9fe
spi: Group cs_change and cs_off flags together in struct spi_transfer

The commit cdf04fd138e9 ("spi: Add capability to perform some transfer
with chipselect off") added a new flag but squeezed it into a wrong
group of struct spi_transfer members (note that SPI_NBITS_* are macros
for easier interpretation of the tx_nbits and rx_nbits bitfields).

Group cs_change and cs_off flags together and their doc strings.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220908130518.32186-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi.h