Re: [PATCH v5 1/2] drm: Add const to name field declaration in struct drm_prop_enum_list

2017-06-08 Thread Ville Syrjälä
On Tue, May 30, 2017 at 07:29:55PM +0300, Jyri Sarha wrote: > 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

[PATCH v5 1/2] drm: Add const to name field declaration in struct drm_prop_enum_list

2017-05-30 Thread Jyri Sarha
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 --