Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 89c1f607 authored by Trent Piepho's avatar Trent Piepho Committed by Mark Brown
Browse files

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: default avatarTrent Piepho <tpiepho@gmail.com>
Reviewed-by: default avatarSourav Poddar <sourav.poddar@ti.com>
Tested-by: default avatarSourav Poddar <sourav.poddar@ti.com&gt;g>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 0c64bc1b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment