]> git.baikalelectronics.ru Git - kernel.git/commit
iio: cros_ec: set calibscale for 3d MEMS to unit vector
authorGwendal Grignou <gwendal@chromium.org>
Mon, 26 Aug 2019 23:02:58 +0000 (16:02 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 3 Sep 2019 17:55:51 +0000 (18:55 +0100)
commit60b5fa841954f1dfd3dd1298118ff16fc106b63b
tree66325168dba55de147129099f34c19b01bee3908
parente325d9f43b369af8472fedf9879be1b77c72e8e6
iio: cros_ec: set calibscale for 3d MEMS to unit vector

By default, set the calibscale vector to unit vector.
When calibrating one axis, the other axis calibrations  are sent as well.
If left to 0, sensor data from uncalibrated axis are zero'ed out until
all axis are calibrated.

Fixes: 63395f4c99e1 ("iio: cros_ec: Add calibscale for 3d MEMS ")
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_core.c