drm/panel-simple: Populate bpc when using panel-dpi
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 2 Dec 2021 18:10:55 +0000 (18:10 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 3 Dec 2021 13:00:19 +0000 (13:00 +0000)
panel-dpi doesn't know the bit depth, so in the same way that
DPI is guessed for the connector type, guess that it'll be 8bpc.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/panel/panel-simple.c

index 8becb0e318140b8effe66904a2b89d4ac87e2347..c0cd50edd045f1a1f3c688285c1d5518fba55721 100644 (file)
@@ -447,6 +447,8 @@ static int panel_dpi_probe(struct device *dev,
 
        /* We do not know the connector for the DT node, so guess it */
        desc->connector_type = DRM_MODE_CONNECTOR_DPI;
+       /* Likewise for the bit depth. */
+       desc->bpc = 8;
 
        panel->desc = desc;