Commit dc629141 authored by Jyri Sarha's avatar Jyri Sarha Committed by Ville Syrjälä

drm: Add const to name field declaration in struct drm_prop_enum_list

There is no reason why the name field should not be const, but
several why it should. The struct should only be used by
drm_property_create_enum() and there the name-field from the struct
is passed to drm_property_add_enum(), which takes a const char * as
a parameter.
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/5dd3b6a1e20452bd8abdcbc55d1e8d7f56262266.1496161066.git.jsarha@ti.com
parent 2af168e1
...@@ -214,7 +214,7 @@ struct drm_property_blob { ...@@ -214,7 +214,7 @@ struct drm_property_blob {
struct drm_prop_enum_list { struct drm_prop_enum_list {
int type; int type;
char *name; const char *name;
}; };
#define obj_to_property(x) container_of(x, struct drm_property, base) #define obj_to_property(x) container_of(x, struct drm_property, base)
......
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