OSDN Git Service

drm: Reject replacing property enum values
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Mar 2018 16:48:44 +0000 (18:48 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 7 Mar 2018 16:19:37 +0000 (18:19 +0200)
commit6f881d04f3f5112e1c4e913a4bfb22bb30e0c9e0
tree1d51044c5ecf7e8443ad2373de9f164932128299
parent2e9b3e74b4a184f657995cf28963f72531c7a420
drm: Reject replacing property enum values

If the property already has the enum value WARN and bail.
Replacing enum values doesn't make sense to me.

Throw out the pointless list_empty() while at it.

Cc: Daniel Vetter <daniel@ffwll.ch>
Suggested-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180306164849.2862-1-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_property.c