Re: [PATCH] video: fbdev: constify fb_fix_screeninfo and fb_var_screeninfo structures

2016-09-27 Thread Tomi Valkeinen
On 11/09/16 18:17, Julia Lawall wrote: > These structures are only used to copy into other structures, so declare > them as const. > > The semantic patch that makes this change in the fb_fix_screeninfo case is > as follows (http://coccinelle.lip6.fr/). The fb_var_screeninfo case is > analogous. >

[PATCH] video: fbdev: constify fb_fix_screeninfo and fb_var_screeninfo structures

2016-09-11 Thread Julia Lawall
These structures are only used to copy into other structures, so declare them as const. The semantic patch that makes this change in the fb_fix_screeninfo case is as follows (http://coccinelle.lip6.fr/). The fb_var_screeninfo case is analogous. // @r disable optional_qualifier@ identifier i; po