diff options
author | Trent Piepho | 2013-12-13 18:27:44 -0800 |
---|---|---|
committer | Mark Brown | 2013-12-16 21:03:42 +0000 |
commit | 89c1f60746106755e29dcc3db9f22e37000891ef (patch) | |
tree | 376230d90e6c40a0c0f8936bf87689e5e8316788 /drivers/spi | |
parent | 0c64bc1b5eace5f48dec7305b83ee4d613d58c94 (diff) |
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')
0 files changed, 0 insertions, 0 deletions