aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/panel/panel-ld9040.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-ld9040.c b/drivers/gpu/drm/panel/panel-ld9040.c
index c6aa7f717fa4..42ac67b21e9f 100644
--- a/drivers/gpu/drm/panel/panel-ld9040.c
+++ b/drivers/gpu/drm/panel/panel-ld9040.c
@@ -110,7 +110,10 @@ struct ld9040 {
110 int error; 110 int error;
111}; 111};
112 112
113#define panel_to_ld9040(p) container_of(p, struct ld9040, panel) 113static inline struct ld9040 *panel_to_ld9040(struct drm_panel *panel)
114{
115 return container_of(panel, struct ld9040, panel);
116}
114 117
115static int ld9040_clear_error(struct ld9040 *ctx) 118static int ld9040_clear_error(struct ld9040 *ctx)
116{ 119{