drm/logicvc: Fix preferred fbdev cpp
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 23 Nov 2022 11:53:43 +0000 (12:53 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 24 Nov 2022 13:07:52 +0000 (14:07 +0100)
commit6f9f15e63de607ffbe621d33e8c8d49481e1e845
tree74db6d9311f56ddf38bf8afce08434c27cefecb2
parent53225f30fa5db4bafbb3e662725a5b3a8121ba8d
drm/logicvc: Fix preferred fbdev cpp

Logicvc can have different values for the preferred color depth. Set
the fbdev bpp value depending on the runtime value.

v2:
* remove unused color depth of 15 from switch (Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20221123115348.2521-3-tzimmermann@suse.de
drivers/gpu/drm/logicvc/logicvc_drm.c