OSDN Git Service

init.sh: fix sensors support for LINX1010B
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 28 Mar 2019 04:18:51 +0000 (12:18 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 28 Mar 2019 04:18:51 +0000 (12:18 +0800)
Reported-and-tested-by: Mark Ellis
init.sh

diff --git a/init.sh b/init.sh
index 8d87f0c..11ac812 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -270,6 +270,9 @@ function init_hal_sensors()
                        modprobe hdaps
                        hal_sensors=hdaps
                        ;;
+               *LINX1010B*)
+                       set_property ro.iio.accel.z.opt_scale -1
+                       ;&
                *i7Stylus*|*M80TA*)
                        set_property ro.iio.accel.x.opt_scale -1
                        ;;