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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:01 +0000 (09:29 -0700)
commit85250adce4a27debef10bd510ddfc4de928b4586
tree5aa9d20ff54e0770fb4da4afd704d24df593720e
parent734f561a7a7d2ccf792f53f35187136f61d38835
iio: inv-mpu: Specify the expected format/precision for write channels

commit 6a3c45bb5a385be7049a7725a4fe93eaa76915f4 upstream.

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