sensor: adjust the log
authorWen Xie <xiewen3@motorola.com>
Tue, 19 Mar 2019 09:52:53 +0000 (17:52 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:24:48 +0000 (11:24 +0800)
Adjust the log reg:
X933X_REG_PROX_ADC_MIN->X933X_REG_PROX_ADC_MAX.

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

drivers/input/misc/sx933x_sar.c

index 68ceab25a640ac750d26f41f8c4e7a0805b2910c..4bd8e1f9045ebee6d3633df7a867f000ed0b1648 100755 (executable)
@@ -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);