]> git.baikalelectronics.ru Git - kernel.git/commit
iio: gyro: bmg160: fix buffer read values
authorIrina Tirdea <irina.tirdea@intel.com>
Mon, 28 Mar 2016 17:15:46 +0000 (20:15 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Apr 2016 10:21:33 +0000 (11:21 +0100)
commitbf26df4f900114b19194f7e7857ad2c36b52fed8
tree126b82cd2d98ecd455c5ae07b88966c30af34080
parent8750038c5d1ae48b342d9d59f8c292b19a37dd5e
iio: gyro: bmg160: fix buffer read values

When reading gyroscope axes using iio buffers, the values
returned are always 0. In the interrupt handler, the return
value of the read operation is returned to the user instead
of the value read. Return the value read to the user.

This is also fixed in commit 82d8e5da1a33 ("iio:
accel: bmg160: optimize transfers in trigger handler").

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/gyro/bmg160_core.c