Commit f8d221dd authored by Thomas Zimmermann's avatar Thomas Zimmermann
Browse files

drm/cirrus: Use VGA macro constants to unblank



Set the VGA bit for unblanking with macro constants instead of magic
values. No functional changes.

Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Acked-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230215161517.5113-18-tzimmermann@suse.de
parent de7d09ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -509,7 +509,7 @@ static void cirrus_crtc_helper_atomic_enable(struct drm_crtc *crtc,
	cirrus_mode_set(cirrus, &crtc_state->mode);

	/* Unblank (needed on S3 resume, vgabios doesn't do it then) */
	outb(0x20, 0x3c0);
	outb(VGA_AR_ENABLE_DISPLAY, VGA_ATT_W);

	drm_dev_exit(idx);
}