Re: [PATCH] drm/virtio: make drm_fb_helper_funcs const

2017-08-09 Thread Daniel Vetter
On Tue, Aug 08, 2017 at 08:44:05PM +0530, Bhumika Goyal wrote: > Make these structures const as they are only passed to the function > drm_fb_helper_prepare and the corresponding argument is of type const. > Done using Coccinelle > > @match disable optional_qualifier@ > identifier s; > @@ >

Re: [PATCH] drm/virtio: make drm_fb_helper_funcs const

2017-08-09 Thread Daniel Vetter
On Tue, Aug 08, 2017 at 08:44:05PM +0530, Bhumika Goyal wrote: > Make these structures const as they are only passed to the function > drm_fb_helper_prepare and the corresponding argument is of type const. > Done using Coccinelle > > @match disable optional_qualifier@ > identifier s; > @@ >

[PATCH] drm/virtio: make drm_fb_helper_funcs const

2017-08-08 Thread Bhumika Goyal
Make these structures const as they are only passed to the function drm_fb_helper_prepare and the corresponding argument is of type const. Done using Coccinelle @match disable optional_qualifier@ identifier s; @@ static struct drm_fb_helper_funcs s = {...}; @ref@ position p; identifier match.s;

[PATCH] drm/virtio: make drm_fb_helper_funcs const

2017-08-08 Thread Bhumika Goyal
Make these structures const as they are only passed to the function drm_fb_helper_prepare and the corresponding argument is of type const. Done using Coccinelle @match disable optional_qualifier@ identifier s; @@ static struct drm_fb_helper_funcs s = {...}; @ref@ position p; identifier match.s;