Re: [PATCH] gspca: make control descriptors constant

2009-12-30 Thread Jean-Francois Moine
On Tue, 29 Dec 2009 22:45:52 +0100 Németh Márton wrote: > The ctrls field of struct sd_desc is declared as const > in gspca.h. It is worth to initialize the content also with > constant values. Thanks, I got it. -- Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef |

[PATCH] gspca: make control descriptors constant

2009-12-29 Thread Németh Márton
From: Márton Németh The ctrls field of struct sd_desc is declared as const in gspca.h. It is worth to initialize the content also with constant values. The semantic match that finds this kind of pattern is as follows: (http://coccinelle.lip6.fr/) // @m@ identifier x; identifier y; identifier s