From: Wen Xie Date: Tue, 19 Mar 2019 09:52:53 +0000 (+0800) Subject: sensor: adjust the log X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=affda587f9bcf02b6f2cce3cd26a78c01e8fe045;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sensor: adjust the log Adjust the log reg: X933X_REG_PROX_ADC_MIN->X933X_REG_PROX_ADC_MAX. Change-Id: I794b57a066ab481d18952d4eb27c08d7067dae17 Signed-off-by: Wen Xie Reviewed-on: https://gerrit.mot.com/1322655 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key 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 68ceab25a640..4bd8e1f9045e 100755 --- a/drivers/input/misc/sx933x_sar.c +++ b/drivers/input/misc/sx933x_sar.c @@ -382,7 +382,7 @@ static void read_dbg_raw(psx93XX_t this) { sx933x_i2c_read_16bit(this, SX933X_REG_PROX_ADC_MIN, &uData); adc_min = (s32)uData>>10; - sx933x_i2c_read_16bit(this, SX933X_REG_PROX_ADC_MIN, &uData); + sx933x_i2c_read_16bit(this, SX933X_REG_PROX_ADC_MAX, &uData); adc_max = (s32)uData>>10; sx933x_i2c_read_16bit(this, SX933X_REG_PROX_RAW, &uData);