MLK-11206: input: misc: fxls8471: support ±2g/±4g/±8g dynamically selection
authorGao Pan <gaopan@freescale.com>
Wed, 1 Jul 2015 06:38:20 +0000 (14:38 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:46:51 +0000 (14:46 -0500)
commit6227df4d99518d78b125507b554aad09aa239724
treed8ee6eaae92a60b9acc74193c8284ebec2a0857e
parent913032d82dcda9d723aa085e25b3514cdf5d28c1
MLK-11206: input: misc: fxls8471: support ±2g/±4g/±8g dynamically selection

Support ±2g/±4g/±8g dynamically selection for motion sensor fxls8471.

Set the sensor mode to standby mode before changing the scale range
with the command "echo 0 > enable". The scale range can be changed
with the command "echo 0/1/2 > range".

Signed-off-by: Gao Pan <b54642@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 6824cff93d368eafbf96c71fad541f9bc2502e3a)
drivers/input/misc/fxls8471.c
drivers/input/misc/fxls8471.h