mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
sensors:fix sx933x first val unreported
report a unused val in probe Change-Id: I4fc5852823a66c6ceedb6d6729d3e5597f3a0914 Signed-off-by: cuijy2 <cuijy1@motorola.com> Reviewed-on: https://gerrit.mot.com/1210327 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ningkai Zhuang <zhuangnk1@lenovo.com> Reviewed-by: Tao Sun <suntao2@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
ea61ad7739
commit
c2d40d8b75
1 changed files with 3 additions and 0 deletions
|
|
@ -852,6 +852,9 @@ static int sx933x_probe(struct i2c_client *client, const struct i2c_device_id *i
|
|||
input_set_abs_params(pButtonInformationData->buttons[i].input_dev, ABS_DISTANCE, -1, 100, 0, 0);
|
||||
|
||||
err = input_register_device(pButtonInformationData->buttons[i].input_dev);
|
||||
/* report a unused val, then first val will report after enable */
|
||||
input_report_abs(pButtonInformationData->buttons[i].input_dev, ABS_DISTANCE, -1);
|
||||
input_sync(pButtonInformationData->buttons[i].input_dev);
|
||||
|
||||
pButtonInformationData->buttons[i].sensors_capsensor_cdev.sensors_enable = capsensor_set_enable;
|
||||
pButtonInformationData->buttons[i].sensors_capsensor_cdev.sensors_poll_delay = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue