Skip to contentSkip to conversation

spi: gpio: Make num_chipselect 8-bit in the struct pxa2xx_spi_controller

PATCH New Andy Shevchenko 1 participant 1 message Mar 7, 2024 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: gpio: Make num_chipselect 8-bit in the struct pxa2xx_spi_controller

There is no use for whole 16-bit for the number of chip select pins. Drop it to 8 bits.

---
 include/linux/spi/spi_gpio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/spi/spi_gpio.h +1 -1
index 5f0e1407917a..30f29df811a4 100644
@@ -19,7 +19,7 @@
  * @num_chipselect: how many target devices to allow
  */
 struct spi_gpio_platform_data {
-	u16		num_chipselect;
+	u8	num_chipselect;
 };
 
 #endif /* __LINUX_SPI_GPIO_H */
Signature · 1 line
2.43.0.rc1.1.gbec44491f096