Skip to content

Commit 08fda41

Browse files
KanjiMonsterbroonie
authored andcommitted
spi: reduce device chip select limit again
The spi chipselect limit SPI_CS_CNT_MAX was raised with commit 2f8c7c3 ("spi: Raise limit on number of chip selects") from 4 to 16 to accommodate spi controllers with more than 4 chip selects, and then later to 24 with commit 96893cd ("spi: Raise limit on number of chip selects to 24"). Now that we removed SPI_CS_CNT_MAX limiting the chip selects of controllers, we can reduce the amount of chip selects per device again to 4, the original value. Signed-off-by: Jonas Gorski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 83c522f commit 08fda41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/spi/spi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <uapi/linux/spi/spi.h>
2222

2323
/* Max no. of CS supported per spi device */
24-
#define SPI_CS_CNT_MAX 24
24+
#define SPI_CS_CNT_MAX 4
2525

2626
struct dma_chan;
2727
struct software_node;

0 commit comments

Comments
 (0)