mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
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:
parent
59af91b563
commit
aae2e5388c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user