drm/panel-simple: Populate bpc when using panel-dpi

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>
This commit is contained in:
Dave Stevenson
2021-12-02 18:10:55 +00:00
committed by Dom Cobley
parent 8b732b5a67
commit 07305b72c4

View File

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