Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: xilinx: Make num_chipselect 8-bit in the struct xspi_platform_data

There is no use for whole 16-bit for the number of chip select pins.
Drop it to 8 bits and reshuffle the data structure layout to avoid
unnecessary paddings.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://msgid.link/r/20240308162920.46816-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
a39111b1 8f40647d

+4 -4
+4 -4
include/linux/spi/xilinx_spi.h
··· 8 8 9 9 /** 10 10 * struct xspi_platform_data - Platform data of the Xilinx SPI driver 11 - * @num_chipselect: Number of chip select by the IP. 12 - * @bits_per_word: Number of bits per word. 13 11 * @devices: Devices to add when the driver is probed. 14 12 * @num_devices: Number of devices in the devices array. 13 + * @num_chipselect: Number of chip select by the IP. 14 + * @bits_per_word: Number of bits per word. 15 15 * @force_irq: If set, forces QSPI transaction requirements. 16 16 */ 17 17 struct xspi_platform_data { 18 - u16 num_chipselect; 19 - u8 bits_per_word; 20 18 struct spi_board_info *devices; 21 19 u8 num_devices; 20 + u8 num_chipselect; 21 + u8 bits_per_word; 22 22 bool force_irq; 23 23 }; 24 24