aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tiny/panel-mipi-dbi.c
diff options
context:
space:
mode:
authorThomas Zimmermann <[email protected]>2025-06-11 07:01:34 +0000
committerThomas Zimmermann <[email protected]>2025-06-11 07:01:34 +0000
commitc598d5eb9fb331ba17bc9ad67ae9a2231ca5aca5 (patch)
treea5b6f4655cde4f19b6b157aa455723c0329bd719 /drivers/gpu/drm/tiny/panel-mipi-dbi.c
parentdrm/panel: ilitek-ili9881c: Add configuration for 7" Raspberry Pi 720x1280 (diff)
parentLinux 6.16-rc1 (diff)
downloadkernel-c598d5eb9fb331ba17bc9ad67ae9a2231ca5aca5.tar.gz
kernel-c598d5eb9fb331ba17bc9ad67ae9a2231ca5aca5.zip
Merge drm/drm-next into drm-misc-next
Backmerging to forward to v6.16-rc1 Signed-off-by: Thomas Zimmermann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/tiny/panel-mipi-dbi.c')
-rw-r--r--drivers/gpu/drm/tiny/panel-mipi-dbi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tiny/panel-mipi-dbi.c b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
index 0460ecaef4bd..23914a9f7fd3 100644
--- a/drivers/gpu/drm/tiny/panel-mipi-dbi.c
+++ b/drivers/gpu/drm/tiny/panel-mipi-dbi.c
@@ -390,7 +390,10 @@ static int panel_mipi_dbi_spi_probe(struct spi_device *spi)
spi_set_drvdata(spi, drm);
- drm_client_setup(drm, NULL);
+ if (bpp == 16)
+ drm_client_setup_with_fourcc(drm, DRM_FORMAT_RGB565);
+ else
+ drm_client_setup_with_fourcc(drm, DRM_FORMAT_RGB888);
return 0;
}