summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/tinydrm/st7735r.c
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2019-04-10 15:43:45 +0300
committerNoralf Trønnes <noralf@tronnes.org>2019-04-11 17:16:06 +0300
commitf47056e880574c923165577b77982ffe3395c510 (patch)
tree7d376ba151a9d776d78ecd73f09fc8e4d62d2ab9 /drivers/gpu/drm/tinydrm/st7735r.c
parent09ded8af57bcef7287b8242087d3e7556380de62 (diff)
downloadlinux-f47056e880574c923165577b77982ffe3395c510.tar.xz
drm/tinydrm: Fix fbdev pixel format
Due to copy/paste error, the fbdev format was changed to 32bpp = XRGB8888 which is an emulated format for the RGB565 drivers. Revert to to using the fallback which is dev->mode_config.preferred_depth for the drivers that set it or 32bpp for those that don't (repaper, st7586). Fixes: 3eba3922819f ("drm/tinydrm: Drop using tinydrm_device") Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190410124345.25945-1-noralf@tronnes.org
Diffstat (limited to 'drivers/gpu/drm/tinydrm/st7735r.c')
-rw-r--r--drivers/gpu/drm/tinydrm/st7735r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tinydrm/st7735r.c b/drivers/gpu/drm/tinydrm/st7735r.c
index 022e9849b95b..ce9109e613e0 100644
--- a/drivers/gpu/drm/tinydrm/st7735r.c
+++ b/drivers/gpu/drm/tinydrm/st7735r.c
@@ -207,7 +207,7 @@ static int st7735r_probe(struct spi_device *spi)
spi_set_drvdata(spi, drm);
- drm_fbdev_generic_setup(drm, 32);
+ drm_fbdev_generic_setup(drm, 0);
return 0;
}