* [PATCH v1 1/1] spi: gpio: Make num_chipselect 8-bit in the struct pxa2xx_spi_controller
@ 2024-03-07 16:12 Andy Shevchenko
0 siblings, 0 replies; only message in thread
From: Andy Shevchenko @ 2024-03-07 16:12 UTC (permalink / raw)
To: Andy Shevchenko, linux-spi, linux-kernel; +Cc: Mark Brown
There is no use for whole 16-bit for the number of chip select pins.
Drop it to 8 bits.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
include/linux/spi/spi_gpio.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/spi/spi_gpio.h b/include/linux/spi/spi_gpio.h
index 5f0e1407917a..30f29df811a4 100644
--- a/include/linux/spi/spi_gpio.h
+++ b/include/linux/spi/spi_gpio.h
@@ -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 */
--
2.43.0.rc1.1.gbec44491f096
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-07 16:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-07 16:12 [PATCH v1 1/1] spi: gpio: Make num_chipselect 8-bit in the struct pxa2xx_spi_controller Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).