fbdev/xen-fbfront: Use struct fb_info.screen_buffer
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 28 Apr 2023 12:24:46 +0000 (14:24 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 8 May 2023 13:28:33 +0000 (15:28 +0200)
commit254a4fda50590c5458f012220df3d0dc2f11fd6e
treeef7fcbd6bae9d8fb67f12851c4ebb1855199b29e
parent5a2c399d609bff499fdebfc5d80d8a5fc720630e
fbdev/xen-fbfront: Use struct fb_info.screen_buffer

Use info->screen_buffer when reading and writing framebuffers in
system memory. It's the correct pointer for this address space.

The struct fb_info has a union to store the framebuffer memory. This can
either be info->screen_base if the framebuffer is stored in I/O memory,
or info->screen_buffer if the framebuffer is stored in system memory.

As the driver operates on the latter address space, it is wrong to use
.screen_base and .screen_buffer must be used instead.

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