From: Martin Kepplinger <[email protected]>
and use that header in the touchscreen driver. This avoids:
drivers/gpu/drm/panel/panel-mantix-mlaf057we51.c:45:6: error: no previous
prototype for 'mantix_panel_prepared' [-Werror=missing-prototypes]
45 | bool mantix_panel_prepared(void)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
---
drivers/input/touchscreen/edt-ft5x06.c | 3 +++
include/drm/drm_panel.h | 2 ++
2 files changed, 5 insertions(+)
diff --git a/drivers/input/touchscreen/edt-ft5x06.c
b/drivers/input/touchscreen/edt-ft5x06.c
index bf498bd4dea96..2a27750c76444 100644
--- a/drivers/input/touchscreen/edt-ft5x06.c
+++ b/drivers/input/touchscreen/edt-ft5x06.c
@@ -34,6 +34,9 @@
#include <linux/unaligned.h>
+/* bool mantix_panel_prepared(void); */
+#include <drm/drm_panel.h>
+
#define WORK_REGISTER_THRESHOLD 0x00
#define WORK_REGISTER_REPORT_RATE 0x08
#define WORK_REGISTER_GAIN 0x30
diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h
index 2407bfa60236f..ea43b3f908d05 100644
--- a/include/drm/drm_panel.h
+++ b/include/drm/drm_panel.h
@@ -392,4 +392,6 @@ static inline int drm_panel_of_backlight(struct drm_panel
*panel)
}
#endif
+bool mantix_panel_prepared(void);
+
#endif
--
2.47.3