From: Guido Günther <[email protected]>

This will be used by the touch controller.

Signed-off-by: Guido Günther <[email protected]>
---
 drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c 
b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
index 55664f5d5aa5d..16c0e5c6b7da7 100644
--- a/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
+++ b/drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c
@@ -40,6 +40,14 @@ struct mantix {
        const struct drm_display_mode *default_mode;
 };
 
+static bool panel_prepared;
+
+bool mantix_panel_prepared(void)
+{
+  return panel_prepared;
+}
+EXPORT_SYMBOL_GPL(mantix_panel_prepared);
+
 static inline struct mantix *panel_to_mantix(struct drm_panel *panel)
 {
        return container_of(panel, struct mantix, panel);
@@ -114,6 +122,8 @@ static int mantix_unprepare(struct drm_panel *panel)
        /* T14 */
        msleep(50);
 
+       panel_prepared = false;
+
        return 0;
 }
 
@@ -155,6 +165,8 @@ static int mantix_prepare(struct drm_panel *panel)
        /* T6 */
        msleep(50);
 
+       panel_prepared = true;
+
        return 0;
 }
 
-- 
2.47.3

Reply via email to