spi: bitbang: Replace hard coded number of SPI modes
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 17 May 2024 19:40:22 +0000 (22:40 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:33:24 +0000 (01:33 +0100)
commitb90cc232e2ce8c959b19dc4b183e23e7aec137ab
tree3efcdcf8229970d2f459ec09311420d38d246426
parentc3358a746e078d0f9048732c90fdab4f37c00e0d
spi: bitbang: Replace hard coded number of SPI modes

Instead of using hard coded number of modes, replace it with
SPI_MODE_X_MASK + 1 to show relation to the SPI modes.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20240517194104.747328-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi_bitbang.h