fbdev: Remove default file-I/O implementations
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Nov 2023 13:16:01 +0000 (14:16 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 29 Nov 2023 11:20:53 +0000 (12:20 +0100)
commit8813e86f6d82a7931446c3cbc5d596f77d0f1ba6
tree63ffd0e6dd822873b50eac67e6c0e59add7e9c93
parentb3e8813773c568fd2d65e9752abfda27442e502e
fbdev: Remove default file-I/O implementations

Drop the default implementations for file read, write and mmap
operations. Each fbdev driver must now provide an implementation
and select any necessary helpers. If no implementation has been
set, fbdev returns an errno code to user space. The code is the
same as if the operation had not been set in the file_operations
struct.

This change makes the fbdev helpers for I/O memory optional. Most
systems only use system-memory framebuffers via DRM's fbdev emulation.

v2:
* warn once if I/O callbacks are missing (Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-33-tzimmermann@suse.de
drivers/video/fbdev/core/Kconfig
drivers/video/fbdev/core/fb_chrdev.c
include/linux/fb.h