]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iio: fix drivers that check buffer->scan_mask
authorOctavian Purdila <octavian.purdila@intel.com>
Mon, 2 Mar 2015 19:03:05 +0000 (21:03 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 7 Mar 2015 19:17:07 +0000 (19:17 +0000)
commit70dddeee8945a0e62525a278ae7b91778f82f765
treef286fe21ec087a95cf3c285604f3114a1aaa24af
parentabe46b8932dd9a6dfc3698e3eb121809b7b9ed28
iio: fix drivers that check buffer->scan_mask

If the in-kernel push interface is used we may have a different masks
on the device buffer and the kernel buffer and in this case the device
should generate data for the reunion of the buffers, which is
available at indio_dev->active_scan_mask.

Compiled tested only except for bmc150-accel which was tested at
runtime with the hardware.

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bma180.c
drivers/iio/accel/bmc150-accel.c
drivers/iio/accel/kxcjk-1013.c
drivers/iio/adc/at91_adc.c
drivers/iio/adc/ti_am335x_adc.c
drivers/iio/gyro/bmg160.c
drivers/iio/imu/kmx61.c
drivers/iio/proximity/sx9500.c