diff options
author | Adriana Reus <adriana.reus@intel.com> | 2015-02-23 17:40:51 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-03-14 21:36:21 +0300 |
commit | af5e1a68318e2ed2de22fc2d7a02f2882abe073c (patch) | |
tree | c6eed53b7effa38d80bf0c6e68fec13d999fc427 /drivers/iio/industrialio-event.c | |
parent | ed170dedd1ddd316c5cd17fec3dd7937981e2fb7 (diff) | |
download | linux-af5e1a68318e2ed2de22fc2d7a02f2882abe073c.tar.xz |
iio:inv-mpu6050: Fix inconsistency for the scale channel
Fix inconsistency in the semantics of the scale attribute.
For scale the write_raw function was considering the scale table index
and writing the appropriate value into the range register, while
for read_raw it was outputting the actual scale.
Fix this behaviour and adhere to the iio ABI specification.
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Reviewed-by: Viorel Suman <viorel.suman@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/industrialio-event.c')
0 files changed, 0 insertions, 0 deletions