From aae2e5388c447918112913d640c418c1780761ae Mon Sep 17 00:00:00 2001 From: Zorro Liu Date: Tue, 9 Jan 2018 10:57:43 +0800 Subject: [PATCH] driver: input: sensors: modify accel sensor calibration offset Change-Id: I411f148b38aa0b4feabf9135123d20d3006798fa Signed-off-by: Zorro Liu --- drivers/input/sensors/sensor-dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/sensors/sensor-dev.c b/drivers/input/sensors/sensor-dev.c index c1da6b483771..c3861274baf7 100644 --- a/drivers/input/sensors/sensor-dev.c +++ b/drivers/input/sensors/sensor-dev.c @@ -126,8 +126,8 @@ static ssize_t accel_calibration_show(struct class *class, #define ACCEL_CAPTURE_TIMES 20 #define ACCEL_SENSITIVE 16384 -/* +-0.6 * 16384 / 9.8 */ -#define ACCEL_OFFSET_MAX 1000 +/* +-1 * 16384 / 9.8 */ +#define ACCEL_OFFSET_MAX 1600 static int accel_do_calibration(struct sensor_private_data *sensor) { int i;