staging:iio:sca3000: Register same channels for device and buffer
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Nov 2014 17:55:10 +0000 (18:55 +0100)
committerJonathan Cameron <jic23@kernel.org>
Fri, 12 Dec 2014 12:28:30 +0000 (12:28 +0000)
commit131e97d3faf2df29a6a488b94890481351f18aea
treeef714567c14b5b864f3a56fd5b71b67548ee19d9
parent217a5cf0a1100264ced523e437e2e22c442dca7c
staging:iio:sca3000: Register same channels for device and buffer

In preparation for moving the buffer registration to the core make sure to
register the same channel array for the device and the buffer. Currently
the temperature channel is not registered for the buffer, setting its scan
index to -1 will make sure that it is skipped for the buffer.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/accel/sca3000_core.c