aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorTrent Piepho2013-12-13 18:27:44 -0800
committerMark Brown2013-12-16 21:03:42 +0000
commit89c1f60746106755e29dcc3db9f22e37000891ef (patch)
tree376230d90e6c40a0c0f8936bf87689e5e8316788 /drivers/spi
parent0c64bc1b5eace5f48dec7305b83ee4d613d58c94 (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