summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZorro Liu <lyx@rock-chips.com>2018-01-09 10:57:43 +0800
committerTao Huang <huangtao@rock-chips.com>2018-01-09 14:09:48 +0800
commitaae2e5388c447918112913d640c418c1780761ae (patch)
treee04da28793138cec49288f7b7a2734d491ea0be6
parent59af91b563d07e33ede02f112860c9356c3fea52 (diff)
driver: input: sensors: modify accel sensor calibration offset
Change-Id: I411f148b38aa0b4feabf9135123d20d3006798fa Signed-off-by: Zorro Liu <lyx@rock-chips.com>
-rw-r--r--drivers/input/sensors/sensor-dev.c4
1 files 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;