提交 c7e62f85 编写于 作者: L Laurent Pinchart 提交者: Yang Yingliang

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

[ Upstream commit 65abbda8ed7ca48c8807d6b04a77431b438fa659 ]

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: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190823193245.23876-2-laurent.pinchart@ideasonboard.comSigned-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 390425c4
...@@ -427,6 +427,7 @@ static int rpi_touchscreen_probe(struct i2c_client *i2c, ...@@ -427,6 +427,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;
......
...@@ -380,6 +380,7 @@ static int st7789v_probe(struct spi_device *spi) ...@@ -380,6 +380,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册