mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
drm/sysfb: Merge connector functions
Merge the connector functions of ofdrm and simpledrm. Replace the code in each driver with the shared helpers. Set up callbacks with initializer macros. No effective code changes. The sysfb connector only returns the preconfigured display mode. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://lore.kernel.org/r/20250401094056.32904-9-tzimmermann@suse.de
This commit is contained in:
@@ -37,6 +37,21 @@ static inline struct drm_sysfb_device *to_drm_sysfb_device(struct drm_device *de
|
||||
return container_of(dev, struct drm_sysfb_device, dev);
|
||||
}
|
||||
|
||||
/*
|
||||
* Connector
|
||||
*/
|
||||
|
||||
int drm_sysfb_connector_helper_get_modes(struct drm_connector *connector);
|
||||
|
||||
#define DRM_SYSFB_CONNECTOR_HELPER_FUNCS \
|
||||
.get_modes = drm_sysfb_connector_helper_get_modes
|
||||
|
||||
#define DRM_SYSFB_CONNECTOR_FUNCS \
|
||||
.reset = drm_atomic_helper_connector_reset, \
|
||||
.fill_modes = drm_helper_probe_single_connector_modes, \
|
||||
.atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state, \
|
||||
.atomic_destroy_state = drm_atomic_helper_connector_destroy_state
|
||||
|
||||
/*
|
||||
* Mode config
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user