From: Thomas Zimmermann Date: Tue, 14 Apr 2026 07:02:28 +0000 (+0200) Subject: drm/ast: Remove traces of DRM_FORMAT_RGB888 handling X-Git-Tag: v7.2-rc1~141^2~26^2~8 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=adf469f2b79513185393758d241e94e7d40d6618;p=thirdparty%2Fkernel%2Flinux.git drm/ast: Remove traces of DRM_FORMAT_RGB888 handling There's some incomplete handling for DRM_FORMAT_RGB888 in the mode- setting code. It was added by ast's original commit, which imported the code from the user-space Xorg driver. But the hardware doesn't support 24-bit pixel sizes. Hence remove the traces of RGB888 from ast. Signed-off-by: Thomas Zimmermann Reviewed-by: Jocelyn Falempe Link: https://patch.msgid.link/20260414070522.33943-3-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index c150b83aaca79..49585fd162678 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -155,7 +155,6 @@ static void ast_set_vbios_color_reg(struct ast_device *ast, case 2: color_index = HiCModeIndex; break; - case 3: case 4: color_index = TrueCModeIndex; break; @@ -765,7 +764,6 @@ static int ast_crtc_helper_atomic_check(struct drm_crtc *crtc, case DRM_FORMAT_RGB565: ast_state->std_table = &vbios_stdtable[HiCModeIndex]; break; - case DRM_FORMAT_RGB888: case DRM_FORMAT_XRGB8888: ast_state->std_table = &vbios_stdtable[TrueCModeIndex]; break;