diff options
author | Thomas Zimmermann <[email protected]> | 2023-04-28 14:24:48 +0200 |
---|---|---|
committer | Thomas Zimmermann <[email protected]> | 2023-05-08 15:28:33 +0200 |
commit | f06875dc4c4f5d8895519857e441d407e88280e4 (patch) | |
tree | 5bd254c9bf0c40fcb70b00c96e4c0a5de916960a /drivers/fpga/fpga-mgr.c | |
parent | 921b7383f34802726a7f45b6b38ef62bae0df4d6 (diff) |
fbdev: Use screen_buffer in fb_sys_{read,write}()
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.
Since the fb_sys_{read,write}() functions operate on the latter address
space, it is wrong to use .screen_base and .screen_buffer must be used
instead. This also gets rid of all the casting needed due to not using
the correct data type.
v2:
* add detailed commit message (Javier)
Signed-off-by: Thomas Zimmermann <[email protected]>
Tested-by: Sui Jingfeng <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Acked-by: Helge Deller <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions