iio: imu: inv_mpu6050: clean read raw by factorizing out raw data
authorJean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Mon, 23 Apr 2018 10:33:32 +0000 (12:33 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Apr 2018 15:54:38 +0000 (16:54 +0100)
commit6792b4552b0a0b4abcc5410504a7a5716ab0e0fa
tree34ad12ef95e2da0fad787c969309c9b7d6ef6b38
parent57f1677bd7629792d58915cfe15e09eef2e22c84
iio: imu: inv_mpu6050: clean read raw by factorizing out raw data

Factorize reading channel data in its own function.

Signed-off-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c