]> git.baikalelectronics.ru Git - kernel.git/commit
iio: inv-mpu: Specify the expected format/precision for write channels
authorAdriana Reus <adriana.reus@intel.com>
Fri, 12 Jun 2015 15:10:23 +0000 (18:10 +0300)
committerJonathan Cameron <jic23@kernel.org>
Sun, 19 Jul 2015 10:48:01 +0000 (11:48 +0100)
commite46430307fbf8c062fcf059a43bc0a6de57ef782
tree27ab1fad9aadfcb471f684b499177f655bc38132
parent07390a349193cd1af754c9d5b123599384777a5a
iio: inv-mpu: Specify the expected format/precision for write channels

The gyroscope needs IIO_VAL_INT_PLUS_NANO for the scale channel and
unless specified write returns MICRO by default.
This needs to be properly specified so that write operations into scale
have the expected behaviour.

Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c