From 48099b41135055bf6663e347bf60cfd8d98a8f59 Mon Sep 17 00:00:00 2001 From: qiurp1 Date: Wed, 4 Jan 2023 10:25:36 +0800 Subject: [PATCH] hiphi:moto stylus service show up in battery statistics the pen power value too large cause moto stylus service show up in battery statistics Change-Id: I39e9fc578924b263ac0c8dc28139f2b0b711a567 Signed-off-by: qiurp1 Reviewed-on: https://gerrit.mot.com/2476188 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiyue Cui Reviewed-by: Tao Sun Submit-Approved: Jira Key --- drivers/misc/hall/hall_pen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/hall/hall_pen.c b/drivers/misc/hall/hall_pen.c index 364c346d2a3a..af2b420073c8 100644 --- a/drivers/misc/hall/hall_pen.c +++ b/drivers/misc/hall/hall_pen.c @@ -243,7 +243,7 @@ static int hall_sensor_probe(struct platform_device *pdev) hall_sensor_dev->sensors_pen_cdev.type = SENSOR_TYPE_MOTO_HALL; hall_sensor_dev->sensors_pen_cdev.max_range = "5"; hall_sensor_dev->sensors_pen_cdev.resolution = "5.0"; - hall_sensor_dev->sensors_pen_cdev.sensor_power = "3"; + hall_sensor_dev->sensors_pen_cdev.sensor_power = "0.005"; hall_sensor_dev->sensors_pen_cdev.min_delay = 0; hall_sensor_dev->sensors_pen_cdev.fifo_reserved_event_count = 0; hall_sensor_dev->sensors_pen_cdev.fifo_max_event_count = 0;