input: update touch usb cable detect report function
authordengwei1 <dengwei1@motorola.com>
Tue, 5 Nov 2019 07:51:10 +0000 (15:51 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:05 +0000 (17:37 +0800)
as vendor patch, change the report function
in call back function

Change-Id: Id0063704802c0841e14cbd5fbd2dd75a8a71c28e
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1449028
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/touchscreen/hxchipset/himax_common.c

index 65260cd969b83b611ecd74fe487974e8f52f3738..f0735a3eec593dadac7495b2cdf00553721d17ef 100755 (executable)
@@ -2000,9 +2000,9 @@ void himax_ts_work(struct himax_ts_data *ts)
        if (debug_data != NULL)
                debug_data->fp_ts_dbg_func(ts, HX_FINGER_ON);
 
-#if defined(HX_USB_DETECT_GLOBAL)
+/* #if defined(HX_USB_DETECT_GLOBAL)
        himax_cable_detect_func(false);
-#endif
+#endif */
 
        ts_path = himax_ts_work_status(ts);
        switch (ts_path) {
@@ -2516,6 +2516,7 @@ static int charger_notifier_callback(struct notifier_block *nb,
                        } else {
                                charger_flag |= prop.intval;
                                USB_detect_flag = charger_flag;
+                               himax_cable_detect_func(false);
                        }
                }
        }