From: Trent Piepho Date: Sat, 14 Dec 2013 02:27:44 +0000 (-0800) Subject: spi: Order fields in spi_device for better packing X-Git-Tag: v3.14-rc1~91^2~6^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89c1f60746106755e29dcc3db9f22e37000891ef;p=pandora-kernel.git 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 Reviewed-by: Sourav Poddar Tested-by: Sourav Poddar g Signed-off-by: Mark Brown --- Reading git-diff-tree failed