From: Mark Brown Date: Fri, 10 Jan 2014 17:09:53 +0000 (+0000) Subject: spi: Use bitfields for multiple data lines X-Git-Tag: v3.14-rc1~91^2~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3fbd457013c0f6d96de461ce0a9cb1f8b73cd0b;p=pandora-kernel.git spi: Use bitfields for multiple data lines Trent Piepho observed that since the current realistic maximum number of data lines is four we can pack the spi_transfer struct more efficiently if we use a bitfield for the number of bits, allowing the fields to fit in a single byte along with cs_change. If space becomes an issue further optimiation is possible by only using the constants and packing the values chosen for them. Reported-by: Trent Piepho Signed-off-by: Mark Brown --- Reading git-diff-tree failed