Commit bb2c941b authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Ard Biesheuvel
Browse files

efi: sysfb_efi: Replace open coded swap with the macro



Replace the open coded width height swap with the standard macro.

Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Suggested-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Melissa Wen <mwen@igalia.com>
Cc: linux-efi@vger.kernel.org
Reviewed-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Tested-by: Melissa Wen <mwen@igalia.com> # v3
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 8f0b4cce
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -357,10 +357,7 @@ __init void sysfb_apply_efi_quirks(void)

	if (screen_info.orig_video_isVGA == VIDEO_TYPE_EFI &&
	    dmi_check_system(efifb_dmi_swap_width_height)) {
		u16 temp = screen_info.lfb_width;

		screen_info.lfb_width = screen_info.lfb_height;
		screen_info.lfb_height = temp;
		swap(screen_info.lfb_width, screen_info.lfb_height);
		screen_info.lfb_linelength = 4 * screen_info.lfb_width;
	}
}