Commit 0e691bc7 authored by Shayenne Moura's avatar Shayenne Moura Committed by Daniel Vetter

drm: Remove use of drm_mode_object

This patch removes the drm_mode_object prints, evaluation and use from
drm_display_mode objects used in drm files. It removes dependency from
drm_mode_object.
Signed-off-by: default avatarShayenne Moura <shayenneluzmoura@gmail.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/785896b0a551464d0b780a55411707300802d6b6.1547214023.git.shayenneluzmoura@gmail.com
parent 0ed833ba
...@@ -391,9 +391,8 @@ bool drm_crtc_helper_set_mode(struct drm_crtc *crtc, ...@@ -391,9 +391,8 @@ bool drm_crtc_helper_set_mode(struct drm_crtc *crtc,
if (!encoder_funcs) if (!encoder_funcs)
continue; continue;
DRM_DEBUG_KMS("[ENCODER:%d:%s] set [MODE:%d:%s]\n", DRM_DEBUG_KMS("[ENCODER:%d:%s] set [MODE:%s]\n",
encoder->base.id, encoder->name, encoder->base.id, encoder->name, mode->name);
mode->base.id, mode->name);
if (encoder_funcs->mode_set) if (encoder_funcs->mode_set)
encoder_funcs->mode_set(encoder, mode, adjusted_mode); encoder_funcs->mode_set(encoder, mode, adjusted_mode);
......
...@@ -71,11 +71,6 @@ struct drm_display_mode *drm_mode_create(struct drm_device *dev) ...@@ -71,11 +71,6 @@ struct drm_display_mode *drm_mode_create(struct drm_device *dev)
if (!nmode) if (!nmode)
return NULL; return NULL;
if (drm_mode_object_add(dev, &nmode->base, DRM_MODE_OBJECT_MODE)) {
kfree(nmode);
return NULL;
}
return nmode; return nmode;
} }
EXPORT_SYMBOL(drm_mode_create); EXPORT_SYMBOL(drm_mode_create);
...@@ -92,8 +87,6 @@ void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode) ...@@ -92,8 +87,6 @@ void drm_mode_destroy(struct drm_device *dev, struct drm_display_mode *mode)
if (!mode) if (!mode)
return; return;
drm_mode_object_unregister(dev, &mode->base);
kfree(mode); kfree(mode);
} }
EXPORT_SYMBOL(drm_mode_destroy); EXPORT_SYMBOL(drm_mode_destroy);
...@@ -911,11 +904,9 @@ EXPORT_SYMBOL(drm_mode_set_crtcinfo); ...@@ -911,11 +904,9 @@ EXPORT_SYMBOL(drm_mode_set_crtcinfo);
*/ */
void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src) void drm_mode_copy(struct drm_display_mode *dst, const struct drm_display_mode *src)
{ {
int id = dst->base.id;
struct list_head head = dst->head; struct list_head head = dst->head;
*dst = *src; *dst = *src;
dst->base.id = id;
dst->head = head; dst->head = head;
} }
EXPORT_SYMBOL(drm_mode_copy); EXPORT_SYMBOL(drm_mode_copy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment