spi: Order fields in spi_device for better packing
authorTrent Piepho <tpiepho@gmail.com>
Sat, 14 Dec 2013 02:27:44 +0000 (18:27 -0800)
committerMark Brown <broonie@linaro.org>
Mon, 16 Dec 2013 21:03:42 +0000 (21:03 +0000)
commit89c1f60746106755e29dcc3db9f22e37000891ef
tree376230d90e6c40a0c0f8936bf87689e5e8316788
parent0c64bc1b5eace5f48dec7305b83ee4d613d58c94
spi: Order fields in spi_device for better packing

Now that spi_device->mode is a u16, the chip_select, bits_per_mode,
and mode fields pack poorly, taking 8 bytes:  four data and four
padding.  By moving (u8)bits_per_word up one position, to after
(u8)chip_select, they pack better and only use 4 bytes.

Signed-off-by: Trent Piepho <tpiepho@gmail.com>
Reviewed-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>g
Signed-off-by: Mark Brown <broonie@linaro.org>
include/linux/spi/spi.h