diff options
author | Mark Brown <broonie@linaro.org> | 2014-01-10 17:09:53 +0000 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-13 10:13:28 +0000 |
commit | d3fbd457013c0f6d96de461ce0a9cb1f8b73cd0b (patch) | |
tree | 0e6cce807a503acdeac23e1267a4c2fb1c9585b6 /include/linux/sched.h | |
parent | a89e2d2754246645959f1a2f91e37e9b367bfd36 (diff) |
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 <tpiepho@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/sched.h')
0 files changed, 0 insertions, 0 deletions