spi: pxa2xx: Make num_chipselect 8-bit in the struct pxa2xx_spi_controller
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 7 Mar 2024 19:47:46 +0000 (21:47 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 00:49:16 +0000 (00:49 +0000)
There is no use for whole 16-bit for the number of chip select pins.
Drop it to 8 bits.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20240307195056.4059864-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/spi/pxa2xx.rst
include/linux/spi/pxa2xx_spi.h

index 19479b801826cff0c6771591f731b68ca6e5e63f..0997d8eaf1903b365af25f49add49b17c5c54e18 100644 (file)
@@ -24,7 +24,7 @@ arch/.../mach-*/board-*.c as a "platform device". The host controller configurat
 is passed to the driver via a table found in include/linux/spi/pxa2xx_spi.h::
 
   struct pxa2xx_spi_controller {
-       u16 num_chipselect;
+       u8 num_chipselect;
        u8 enable_dma;
        ...
   };
index 56aba2f737b117fae3aad4154980c74e55247d64..e5a4a045fb673144dd9a80d03aafc9c1264d9b32 100644 (file)
@@ -17,7 +17,7 @@ struct dma_chan;
  * (resides in device.platform_data).
  */
 struct pxa2xx_spi_controller {
-       u16 num_chipselect;
+       u8 num_chipselect;
        u8 enable_dma;
        u8 dma_burst_size;
        bool is_target;