diff options
author | Thomas Zimmermann <[email protected]> | 2023-04-28 14:24:51 +0200 |
---|---|---|
committer | Thomas Zimmermann <[email protected]> | 2023-05-08 15:28:34 +0200 |
commit | 6121cd9ef911432b14c2a17aefaf8cd2f3cfcdff (patch) | |
tree | 6db707c245921b6460cbda1c20f22e1a737f7f59 /drivers/fpga/xilinx-spi.c | |
parent | 3f8974f68f408f4983443b745a3cf95b06112469 (diff) |
fbdev: Move I/O read and write code into helper functions
Move the existing I/O read and write code for I/O memory into
the new helpers fb_cfb_read() and fb_cfb_write(). Make them the
default fp_ops. No functional changes.
In the near term, the new functions will be useful to the DRM
subsystem, which currently provides it's own implementation. It
can then use the shared code. In the longer term, it might make
sense to revise the I/O helper's default status and make them
opt-in by the driver. Systems that don't use them would not
contain the code any longer.
v2:
* add detailed commit message (Javier)
* rename fb_cfb_() to fb_io_() (Geert)
* add fixes that got lost while moving the code (Geert)
Signed-off-by: Thomas Zimmermann <[email protected]>
Tested-by: Sui Jingfeng <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Acked-by: Helge Deller <[email protected]>
Reviewed-by: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions