From 4f375413d0c902d82bca83e9339a312ecc99ace3 Mon Sep 17 00:00:00 2001 From: dengwei1 Date: Tue, 5 Nov 2019 15:51:10 +0800 Subject: [PATCH] input: update touch usb cable detect report function as vendor patch, change the report function in call back function Change-Id: Id0063704802c0841e14cbd5fbd2dd75a8a71c28e Signed-off-by: dengwei1 Reviewed-on: https://gerrit.mot.com/1449028 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/input/touchscreen/hxchipset/himax_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/input/touchscreen/hxchipset/himax_common.c b/drivers/input/touchscreen/hxchipset/himax_common.c index 65260cd969b8..f0735a3eec59 100755 --- a/drivers/input/touchscreen/hxchipset/himax_common.c +++ b/drivers/input/touchscreen/hxchipset/himax_common.c @@ -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); } } } -- 2.20.1