diff options
author | Trent Piepho | 2013-12-14 03:27:44 +0100 |
---|---|---|
committer | Mark Brown | 2013-12-16 22:03:42 +0100 |
commit | 89c1f60746106755e29dcc3db9f22e37000891ef (patch) | |
tree | 376230d90e6c40a0c0f8936bf87689e5e8316788 /drivers/spi/spi.c | |
parent | spi: Correction to typos in Documentation/spi/spi-summary (diff) | |
download | kernel-qcow2-linux-89c1f60746106755e29dcc3db9f22e37000891ef.tar.gz kernel-qcow2-linux-89c1f60746106755e29dcc3db9f22e37000891ef.tar.xz kernel-qcow2-linux-89c1f60746106755e29dcc3db9f22e37000891ef.zip |
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>
Diffstat (limited to 'drivers/spi/spi.c')
0 files changed, 0 insertions, 0 deletions