OSDN Git Service

drm/tinydrm: Fix fbdev pixel format
authorNoralf Trønnes <noralf@tronnes.org>
Wed, 10 Apr 2019 12:43:45 +0000 (14:43 +0200)
committerNoralf Trønnes <noralf@tronnes.org>
Thu, 11 Apr 2019 14:16:06 +0000 (16:16 +0200)
commitf47056e880574c923165577b77982ffe3395c510
tree7d376ba151a9d776d78ecd73f09fc8e4d62d2ab9
parent09ded8af57bcef7287b8242087d3e7556380de62
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
drivers/gpu/drm/tinydrm/hx8357d.c
drivers/gpu/drm/tinydrm/ili9225.c
drivers/gpu/drm/tinydrm/ili9341.c
drivers/gpu/drm/tinydrm/mi0283qt.c
drivers/gpu/drm/tinydrm/repaper.c
drivers/gpu/drm/tinydrm/st7586.c
drivers/gpu/drm/tinydrm/st7735r.c