summaryrefslogtreecommitdiffstats
path: root/drivers/iio/Makefile
diff options
context:
space:
mode:
authorLars-Peter Clausen2012-11-13 14:28:00 +0100
committerJonathan Cameron2012-11-19 23:22:11 +0100
commitaacff892cbd5c6b1904a3906219548a65018d750 (patch)
tree07e8ee424e67ada771e1b5f46be75425a9cdf241 /drivers/iio/Makefile
parentstaging:iio:adis_lib: Use triggered buffer setup helper function (diff)
downloadkernel-qcow2-linux-aacff892cbd5c6b1904a3906219548a65018d750.tar.gz
kernel-qcow2-linux-aacff892cbd5c6b1904a3906219548a65018d750.tar.xz
kernel-qcow2-linux-aacff892cbd5c6b1904a3906219548a65018d750.zip
staging:iio:adis: Preallocate transfer message
Currently the driver reads out all sample registers of the device and throws away those which it does not need. Furthermore the SPI message is constructed each time the trigger handler is run, although it will be the same each time. This patch preallocates and pre-constructs the SPI message in the "update_scan_mode" callback. Only those register which are actually selected for sampling are included in the message. The patch also gets rid of the conversion of the sample data from big endian to the native endianness and instead marks the channel as big endian in its scan type. This allows to directly push the SPI transfer buffer to the IIO buffer without the need to post-process it. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/Makefile')
0 files changed, 0 insertions, 0 deletions