summaryrefslogtreecommitdiff
path: root/syna_tcm2_runtime.h
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2021-09-22 15:54:21 +0800
committerdavidycchen <davidycchen@google.com>2021-09-30 14:26:24 +0800
commit8dbeaa2288f4b3dcf8ed4a28a56eab5aed82dfa6 (patch)
treed00360c78e4f8baf7c2bd426e3c2e173796ef861 /syna_tcm2_runtime.h
parentb1dd3f807cf4d1fe152ee09cca0f08b910c65248 (diff)
downloadsynaptics_touch-8dbeaa2288f4b3dcf8ed4a28a56eab5aed82dfa6.tar.gz
synaptics: use drm_bridge for touch power sequence
Listen to display states by drm_bridge for touch suspend/resume. Bug: 199104450 Bug: 201375583 Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: Ie88153c7b53971bb2441b6c01cca17ea9bb12dc0
Diffstat (limited to 'syna_tcm2_runtime.h')
-rw-r--r--syna_tcm2_runtime.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/syna_tcm2_runtime.h b/syna_tcm2_runtime.h
index b5ef979..cc21e9c 100644
--- a/syna_tcm2_runtime.h
+++ b/syna_tcm2_runtime.h
@@ -59,7 +59,9 @@
#include <linux/uaccess.h>
#include <linux/crc32.h>
#include <linux/firmware.h>
-#ifdef CONFIG_DRM_PANEL
+#if defined(USE_DRM_BRIDGE)
+#include <drm/drm_bridge.h>
+#elif defined(CONFIG_DRM_PANEL)
#include <drm/drm_panel.h>
#elif CONFIG_FB
#include <linux/fb.h>