aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-09-04 16:28:03 +0300
committerSam Ravnborg <sam@ravnborg.org>2019-09-08 19:04:01 +0200
commit9a2654c0f62a1704f36acb6329f9ccbd539f75ad (patch)
tree0eb30c790b569ce9e5afd2d94802a7c8d490f81c /drivers/gpu/drm/panel/panel-nec-nl8048hl11.c
parentfbdev/sa1100fb: Remove even more dead code (diff)
downloadlinux-dev-9a2654c0f62a1704f36acb6329f9ccbd539f75ad.tar.xz
linux-dev-9a2654c0f62a1704f36acb6329f9ccbd539f75ad.zip
drm/panel: Add and fill drm_panel type field
Add a type field to the drm_panel structure to report the panel type, using DRM_MODE_CONNECTOR_* macros (the values that make sense are LVDS, eDP, DSI and DPI). This will be used to initialise the corresponding connector type. Update all panel drivers accordingly. The panel-simple driver only specifies the type for the known to be LVDS panels, while all other panels are left as unknown and will be converted on a case-by-case basis as they all need to be carefully reviewed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20190904132804.29680-2-laurent.pinchart@ideasonboard.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-nec-nl8048hl11.c')
-rw-r--r--drivers/gpu/drm/panel/panel-nec-nl8048hl11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c b/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c
index b67636fdbc21..c4bc7fa85fad 100644
--- a/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c
+++ b/drivers/gpu/drm/panel/panel-nec-nl8048hl11.c
@@ -205,7 +205,8 @@ static int nl8048_probe(struct spi_device *spi)
if (ret < 0)
return ret;
- drm_panel_init(&lcd->panel, &lcd->spi->dev, &nl8048_funcs);
+ drm_panel_init(&lcd->panel, &lcd->spi->dev, &nl8048_funcs,
+ DRM_MODE_CONNECTOR_DPI);
return drm_panel_add(&lcd->panel);
}