iio: cros_ec: Add calibscale for 3d MEMS
authorGwendal Grignou <gwendal@chromium.org>
Thu, 18 Jul 2019 23:28:24 +0000 (16:28 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jul 2019 19:11:18 +0000 (20:11 +0100)
commited1f2e85da79274f3dc4092953f1359eb732f0c6
treea2b5cf8552301ea4f05d1170211a8006302999f8
parent50e5bae0c1f976e881eecf4d1ad70ce1593021c9
iio: cros_ec: Add calibscale for 3d MEMS

Add calibration scale support to accel, gyro and magnetometer.

Check on eve with current firmware, check reading calibscale returns 1.0,
check with newer firmware values are applied.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
drivers/iio/light/cros_ec_light_prox.c
drivers/iio/pressure/cros_ec_baro.c
include/linux/iio/common/cros_ec_sensors_core.h