Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit af5e1a68 authored by Adriana Reus's avatar Adriana Reus Committed by Jonathan Cameron
Browse files

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: default avatarAdriana Reus <adriana.reus@intel.com>
Reviewed-by: default avatarViorel Suman <viorel.suman@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent ed170ded
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment