]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/fbdev-shmem: Support struct drm_driver.fbdev_probe
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 24 Sep 2024 07:12:47 +0000 (09:12 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 26 Sep 2024 07:31:27 +0000 (09:31 +0200)
commitf0f195d1a3aedef126c3ed159712ed57a34daa1c
treefd695fcf418491454ec3ef643799a89085748ce7
parent731fddf4302ec00871fd5ae252c0aa765d61a9ad
drm/fbdev-shmem: Support struct drm_driver.fbdev_probe

Rework fbdev probing to support fbdev_probe in struct drm_driver
and reimplement the old fb_probe callback on top of it. Provide an
initializer macro for struct drm_driver that sets the callback
according to the kernel configuration.

This change allows the common fbdev client to run on top of SHMEM-
based DRM drivers.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240924071734.98201-50-tzimmermann@suse.de
drivers/gpu/drm/drm_fbdev_shmem.c
include/drm/drm_fbdev_shmem.h