]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:45:23 +0000 (15:45 +0900)
commita18addccce07241b3ba6b5ef6cd3a3d77d8c03d8
tree0dd3d3fb1510cced9ce57d2bc001957de99e0f37
parent0fad138bac5255f2eea9c05703506ea2cf7ad039
iio: gyro: bmg160: fix buffer read values

commit b475c59b113db1e66eb9527ffdec3c5241c847e5 upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/gyro/bmg160_core.c