mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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:
committed by
Dom Cobley
parent
8b732b5a67
commit
07305b72c4
@@ -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 */
|
||||
desc->connector_type = DRM_MODE_CONNECTOR_DPI;
|
||||
/* Likewise for the bit depth. */
|
||||
desc->bpc = 8;
|
||||
|
||||
panel->desc = desc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user