driver: input: sensors: modify accel sensor calibration offset

Change-Id: I411f148b38aa0b4feabf9135123d20d3006798fa
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
This commit is contained in:
Zorro Liu 2018-01-09 10:57:43 +08:00 committed by Tao Huang
parent 59af91b563
commit aae2e5388c

View File

@ -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;