fbdev/vesafb: Replace references to global screen_info by local pointer
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 6 Dec 2023 13:50:28 +0000 (14:50 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 18 Dec 2023 10:26:23 +0000 (11:26 +0100)
commit3218286bbb78cac3dde713514529e0480d678173
tree2bfa714de99698c43dd16e20289c2858a204f2e9
parentb9cfd1d271ab51d677cd16b02b74267b5bac6508
fbdev/vesafb: Replace references to global screen_info by local pointer

Get the global screen_info's address once and access the data via
this pointer. Limits the use of global state.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231206135153.2599-4-tzimmermann@suse.de
drivers/video/fbdev/vesafb.c