drm: WARN when trying to add enum value > 63 to a bitmask property
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 6 Mar 2018 16:48:46 +0000 (18:48 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 7 Mar 2018 16:21:10 +0000 (18:21 +0200)
commit8c6c2fe2f11b0f03be34efd1639ab921c8a4c163
treec4e468877427617cadd4f91eaa81c6d94ca8c8e1
parent1371f2604dad70942041a7f1ed1a2029c67606b1
drm: WARN when trying to add enum value > 63 to a bitmask property

Enum values >63 with a bitmask property is a programmer error. WARN
when someone is attempting this.

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