sensor: According to datasheet modify Sar Sensor Power
authorWen Xie <xiewen3@motorola.com>
Fri, 15 Feb 2019 05:19:21 +0000 (13:19 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:36:56 +0000 (17:36 +0800)
According to SX9331 datasheet:
One channel's current consumption is 27uA(Active states),
use five channels,so current consumption is 135uA(Active).

On the upper level,we virtual sar sensor into three sensors,
so set sensor power to 45uA.

Change-Id: I1e1a0d6f31d81421bb375dd7fcfbec4cfe14e739
Signed-off-by: Wen Xie <xiewen3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1309253
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yuchang Guo <guoyc1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/input/misc/sx933x_sar.c

index eaff4bfd63571be8c54ae6b4066b6a4d9870f32a..254a2ffc47a4969dd8906eeb80971371ae4826de 100755 (executable)
@@ -1136,7 +1136,7 @@ static int sx933x_probe(struct i2c_client *client, const struct i2c_device_id *i
                                        pButtonInformationData->buttons[i].sensors_capsensor_cdev.type = SENSOR_TYPE_MOTO_CAPSENSE;
                                        pButtonInformationData->buttons[i].sensors_capsensor_cdev.max_range = "5";
                                        pButtonInformationData->buttons[i].sensors_capsensor_cdev.resolution = "5.0";
-                                       pButtonInformationData->buttons[i].sensors_capsensor_cdev.sensor_power = "0.5";
+                                       pButtonInformationData->buttons[i].sensors_capsensor_cdev.sensor_power = "0.045";
                                        pButtonInformationData->buttons[i].sensors_capsensor_cdev.min_delay = 0;
                                        pButtonInformationData->buttons[i].sensors_capsensor_cdev.fifo_reserved_event_count = 0;
                                        pButtonInformationData->buttons[i].sensors_capsensor_cdev.fifo_max_event_count = 0;