From: Wen Xie Date: Fri, 15 Feb 2019 05:19:21 +0000 (+0800) Subject: sensor: According to datasheet modify Sar Sensor Power X-Git-Tag: MMI-QSAS30.62-33-3~235 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a351374fcfbf3b064e954fa3040f7272a93e7c3a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git sensor: According to datasheet modify Sar Sensor Power 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 Reviewed-on: https://gerrit.mot.com/1309253 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/drivers/input/misc/sx933x_sar.c b/drivers/input/misc/sx933x_sar.c index eaff4bfd6357..254a2ffc47a4 100755 --- a/drivers/input/misc/sx933x_sar.c +++ b/drivers/input/misc/sx933x_sar.c @@ -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;