mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
drm/sysfb: Merge mode-config functions
Provide initializer to set struct drm_mode_config_funcs. Convert ofdrm and simpledrm. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://lore.kernel.org/r/20250401094056.32904-8-tzimmermann@suse.de
This commit is contained in:
parent
333376e9cf
commit
559d105f3a
|
|
@ -37,4 +37,13 @@ static inline struct drm_sysfb_device *to_drm_sysfb_device(struct drm_device *de
|
|||
return container_of(dev, struct drm_sysfb_device, dev);
|
||||
}
|
||||
|
||||
/*
|
||||
* Mode config
|
||||
*/
|
||||
|
||||
#define DRM_SYSFB_MODE_CONFIG_FUNCS \
|
||||
.fb_create = drm_gem_fb_create_with_dirty, \
|
||||
.atomic_check = drm_atomic_helper_check, \
|
||||
.atomic_commit = drm_atomic_helper_commit
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1018,9 +1018,7 @@ static const struct drm_connector_funcs ofdrm_connector_funcs = {
|
|||
};
|
||||
|
||||
static const struct drm_mode_config_funcs ofdrm_mode_config_funcs = {
|
||||
.fb_create = drm_gem_fb_create_with_dirty,
|
||||
.atomic_check = drm_atomic_helper_check,
|
||||
.atomic_commit = drm_atomic_helper_commit,
|
||||
DRM_SYSFB_MODE_CONFIG_FUNCS,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -747,9 +747,7 @@ static const struct drm_connector_funcs simpledrm_connector_funcs = {
|
|||
};
|
||||
|
||||
static const struct drm_mode_config_funcs simpledrm_mode_config_funcs = {
|
||||
.fb_create = drm_gem_fb_create_with_dirty,
|
||||
.atomic_check = drm_atomic_helper_check,
|
||||
.atomic_commit = drm_atomic_helper_commit,
|
||||
DRM_SYSFB_MODE_CONFIG_FUNCS,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user