sensor: correct gyro direction of y axis

Change-Id: Iaf8d71531b9622ead2aa47fbb33db909a8d0e082
Tracked-On: https://jira.ndg.intel.com/browse/MARVIN-884
Signed-off-by: Like Yan <like.yan@intel.com>
Reviewed-on: https://android.intel.com/421747
Reviewed-by: Ledentec, AlexandreX <alexandrex.ledentec@intel.com>
Tested-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
Reviewed-by: Tasayco Loarte, VictorX <victorx.tasayco.loarte@intel.com>
diff --git a/libsensors_iio/.config b/libsensors_iio/.config
index 7c85cc0..2c2d62d 100644
--- a/libsensors_iio/.config
+++ b/libsensors_iio/.config
@@ -42,7 +42,7 @@
 CONFIG_ST_HAL_ACCEL_RANGE=17
 CONFIG_ST_HAL_MAGN_ROT_MATRIX="1,0,0,0,1,0,0,0,1"
 CONFIG_ST_HAL_MAGN_RANGE=1000
-CONFIG_ST_HAL_GYRO_ROT_MATRIX="1,0,0,0,1,0,0,0,-1"
+CONFIG_ST_HAL_GYRO_ROT_MATRIX="1,0,0,0,-1,0,0,0,-1"
 CONFIG_ST_HAL_GYRO_RANGE=35
 
 #
diff --git a/libsensors_iio/configuration.h b/libsensors_iio/configuration.h
index beead98..2d878cf 100644
--- a/libsensors_iio/configuration.h
+++ b/libsensors_iio/configuration.h
@@ -31,7 +31,7 @@
 #define CONFIG_ST_HAL_ACCEL_RANGE 17
 #define CONFIG_ST_HAL_MAGN_ROT_MATRIX 1,0,0,0,1,0,0,0,1
 #define CONFIG_ST_HAL_MAGN_RANGE 1000
-#define CONFIG_ST_HAL_GYRO_ROT_MATRIX 1,0,0,0,1,0,0,0,-1
+#define CONFIG_ST_HAL_GYRO_ROT_MATRIX 1,0,0,0,-1,0,0,0,-1
 #define CONFIG_ST_HAL_GYRO_RANGE 35