mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
input: touchscreen: mmi: handle low-power notifications
Change-Id: Id164d59fb8ff4b0c033f6eac903acac4bb93b310
This commit is contained in:
parent
f7100f89cf
commit
9fe28bbe3a
2 changed files with 11 additions and 4 deletions
|
|
@ -187,15 +187,17 @@ static void ts_mmi_panel_cb(enum panel_event_notifier_tag tag,
|
|||
|
||||
dev_dbg(DEV_MMI, "%s: %s Notify_type=%d, early=%d, ctrl_dsi=%d\n", __func__,
|
||||
EVENT_PRE_DISPLAY_OFF ? "EVENT_PRE_DISPLAY_OFF" :
|
||||
(EVENT_DISPLAY_LP ? "EVENT_DISPLAY_LP" :
|
||||
(EVENT_DISPLAY_OFF ? "EVENT_DISPLAY_OFF" :
|
||||
(EVENT_PRE_DISPLAY_ON ? "EVENT_PRE_DISPLAY_ON" :
|
||||
(EVENT_DISPLAY_ON ? "EVENT_DISPLAY_ON" : "Unknown"))),
|
||||
(EVENT_DISPLAY_ON ? "EVENT_DISPLAY_ON" : "Unknown")))),
|
||||
event, (evdata.early_trigger ? 1 : 0), touch_cdev->pdata.ctrl_dsi);
|
||||
|
||||
panel_event = EVENT_PRE_DISPLAY_OFF ? TS_MMI_EVENT_PRE_DISPLAY_OFF :
|
||||
(EVENT_DISPLAY_LP ? TS_MMI_EVENT_PRE_DISPLAY_OFF :
|
||||
(EVENT_DISPLAY_OFF ? TS_MMI_EVENT_DISPLAY_OFF :
|
||||
(EVENT_PRE_DISPLAY_ON ? TS_MMI_EVENT_PRE_DISPLAY_ON :
|
||||
(EVENT_DISPLAY_ON ? TS_MMI_EVENT_DISPLAY_ON : TS_MMI_EVENT_UNKNOWN)));
|
||||
(EVENT_DISPLAY_ON ? TS_MMI_EVENT_DISPLAY_ON : TS_MMI_EVENT_UNKNOWN))));
|
||||
|
||||
ts_mmi_panel_event_handle(touch_cdev, panel_event);
|
||||
|
||||
|
|
@ -218,18 +220,20 @@ static int ts_mmi_panel_cb(struct notifier_block *nb,
|
|||
|
||||
dev_dbg(DEV_MMI,"%s: %s event(%lu), ctrl_dsi=%d, idx=%d\n", __func__,
|
||||
EVENT_PRE_DISPLAY_OFF ? "EVENT_PRE_DISPLAY_OFF" :
|
||||
(EVENT_DISPLAY_LP ? "EVENT_DISPLAY_LP" :
|
||||
(EVENT_DISPLAY_OFF ? "EVENT_DISPLAY_OFF" :
|
||||
(EVENT_PRE_DISPLAY_ON ? "EVENT_PRE_DISPLAY_ON" :
|
||||
(EVENT_DISPLAY_ON ? "EVENT_DISPLAY_ON" : "Unknown"))),
|
||||
(EVENT_DISPLAY_ON ? "EVENT_DISPLAY_ON" : "Unknown")))),
|
||||
event, touch_cdev->pdata.ctrl_dsi, idx);
|
||||
|
||||
if (touch_cdev->pdata.ctrl_dsi != idx)
|
||||
return 0;
|
||||
|
||||
panel_event = EVENT_PRE_DISPLAY_OFF ? TS_MMI_EVENT_PRE_DISPLAY_OFF :
|
||||
(EVENT_DISPLAY_LP ? TS_MMI_EVENT_PRE_DISPLAY_OFF :
|
||||
(EVENT_DISPLAY_OFF ? TS_MMI_EVENT_DISPLAY_OFF :
|
||||
(EVENT_PRE_DISPLAY_ON ? TS_MMI_EVENT_PRE_DISPLAY_ON :
|
||||
(EVENT_DISPLAY_ON ? TS_MMI_EVENT_DISPLAY_ON : TS_MMI_EVENT_UNKNOWN)));
|
||||
(EVENT_DISPLAY_ON ? TS_MMI_EVENT_DISPLAY_ON : TS_MMI_EVENT_UNKNOWN))));
|
||||
|
||||
ret = ts_mmi_panel_event_handle(touch_cdev, panel_event);
|
||||
|
||||
|
|
|
|||
|
|
@ -137,6 +137,9 @@ struct drm_panel_notifier *evdata = evd; \
|
|||
((event == DRM_PANEL_EVENT_BLANK) && \
|
||||
(*blank == DRM_PANEL_BLANK_UNBLANK))
|
||||
|
||||
#define EVENT_DISPLAY_LP \
|
||||
(*blank == DRM_PANEL_BLANK_LP)
|
||||
|
||||
#else /* CONFIG_DRM_PANEL_NOTIFICATIONS */
|
||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(4,14,0)
|
||||
#if defined(CONFIG_DRM_MSM)
|
||||
|
|
|
|||
Loading…
Reference in a new issue