Skip to content

Commit dc62914

Browse files
Jyri Sarhavsyrjala
authored andcommitted
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: Jyri Sarha <jsarha@ti.com> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/5dd3b6a1e20452bd8abdcbc55d1e8d7f56262266.1496161066.git.jsarha@ti.com
1 parent 2af168e commit dc62914

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/drm/drm_property.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ struct drm_property_blob {
214214

215215
struct drm_prop_enum_list {
216216
int type;
217-
char *name;
217+
const char *name;
218218
};
219219

220220
#define obj_to_property(x) container_of(x, struct drm_property, base)

0 commit comments

Comments
 (0)