Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf26afee authored by Oliver Wang's avatar Oliver Wang
Browse files

input: sensors: rename the accelrometer sensors input device name



The sensors HAL can't distinguish accelerometer from each other by
input device name. This may cause accelerometer data not correct on
target with multiple accelerometers. So rename the accelerometer
sensor name to distinguish each other.

Change-Id: I57ed6416d04fd5bd1208ba8f9bfed039cca3b441
Signed-off-by: default avatarOliver Wang <mengmeng@codeaurora.org>
parent bbe9e313
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@
#define ISR_INFO(dev, fmt, arg...)
#endif

#define SENSOR_NAME                 "accelerometer"
#define SENSOR_NAME                 "bma2x2-accel"
#define ABSMIN                      -512
#define ABSMAX                      512
#define SLOPE_THRESHOLD_VALUE       32
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@
#define MPU6050_ACCEL_SCALE_SHIFT_2G	4
#define MPU6050_GYRO_SCALE_SHIFT_FS0	3

#define MPU6050_DEV_NAME_ACCEL	"accelerometer"
#define MPU6050_DEV_NAME_ACCEL	"MPU6050-accel"
#define MPU6050_DEV_NAME_GYRO	"gyroscope"

enum mpu6050_place {
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@
#define LIS3DH_ACC_I2C_SAD_L	((LIS3DH_ACC_I2C_SADROOT<<1)|SAD0L)
#define LIS3DH_ACC_I2C_SAD_H	((LIS3DH_ACC_I2C_SADROOT<<1)|SAD0H)
#define	LIS3DH_ACC_DEV_NAME	"lis3dh_acc"
#define ACCEL_INPUT_DEV_NAME	"accelerometer"
#define ACCEL_INPUT_DEV_NAME	"lis3dh-accel"

/************************************************/
/*	Accelerometer defines section		*/