Commit 65abbda8 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Sam Ravnborg

drm/panel: Add missing drm_panel_init() in panel drivers

Panels must be initialised with drm_panel_init(). Add the missing
function call in the panel-raspberrypi-touchscreen.c and
panel-sitronix-st7789v.c drivers.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190823193245.23876-2-laurent.pinchart@ideasonboard.com
parent 1c5f087a
...@@ -426,6 +426,7 @@ static int rpi_touchscreen_probe(struct i2c_client *i2c, ...@@ -426,6 +426,7 @@ static int rpi_touchscreen_probe(struct i2c_client *i2c,
return PTR_ERR(ts->dsi); return PTR_ERR(ts->dsi);
} }
drm_panel_init(&ts->base);
ts->base.dev = dev; ts->base.dev = dev;
ts->base.funcs = &rpi_touchscreen_funcs; ts->base.funcs = &rpi_touchscreen_funcs;
......
...@@ -381,6 +381,7 @@ static int st7789v_probe(struct spi_device *spi) ...@@ -381,6 +381,7 @@ static int st7789v_probe(struct spi_device *spi)
spi_set_drvdata(spi, ctx); spi_set_drvdata(spi, ctx);
ctx->spi = spi; ctx->spi = spi;
drm_panel_init(&ctx->panel);
ctx->panel.dev = &spi->dev; ctx->panel.dev = &spi->dev;
ctx->panel.funcs = &st7789v_drm_funcs; ctx->panel.funcs = &st7789v_drm_funcs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment