Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

efi: sysfb_efi: Replace open coded swap with the macro

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

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Suggested-by: Thomas 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: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Melissa Wen <mwen@igalia.com> # v3
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>

authored by

Tvrtko Ursulin and committed by
Ard Biesheuvel
bb2c941b 8f0b4cce

+1 -4
+1 -4
drivers/firmware/efi/sysfb_efi.c
··· 357 357 358 358 if (screen_info.orig_video_isVGA == VIDEO_TYPE_EFI && 359 359 dmi_check_system(efifb_dmi_swap_width_height)) { 360 - u16 temp = screen_info.lfb_width; 361 - 362 - screen_info.lfb_width = screen_info.lfb_height; 363 - screen_info.lfb_height = temp; 360 + swap(screen_info.lfb_width, screen_info.lfb_height); 364 361 screen_info.lfb_linelength = 4 * screen_info.lfb_width; 365 362 } 366 363 }