dlkm/sensor: optimize sx933x boot-time

1.Just need msleep(100) when reset chip
  2.It can reduce about 100ms boot-time

Change-Id: Iacc6cdb6cfbb6c85698fc3eaea8e7f8ff3580a53
Signed-off-by: weimh1 <weimh1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1543184
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Lijun Chen <chenlj2@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
weimh1 2020-04-27 15:17:53 +08:00 • committed by Minghui Wei
commit 9396755c08

View file

@ -533,8 +533,6 @@ static int initialize(psx93XX_t this)
msleep(100);
ret = sx933x_global_variable_init(this);
sx933x_reg_init(this);
msleep(100); /* make sure everything is running */
manual_offset_calibration(this);
/* re-enable interrupt handling */
enable_irq(this->irq);