[media] dib0700_devices: Use c99 initializers for structures.
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Sep 2014 21:57:45 +0000 (18:57 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Sep 2014 22:00:28 +0000 (19:00 -0300)
commit09628b2c2105722e61b8c799531304a1cd317b2e
tree241af5b77ccfe4298712b8185a10715a4c13cda6
parent1148f6fdb0136b6cf9ec5e1ff6db2dfa899b3906
[media] dib0700_devices: Use c99 initializers for structures.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@decl@
identifier i1,fld;
type T;
field list[n] fs;
@@

struct i1 {
 fs
 T fld;
 ...};

@bad@
identifier decl.i1,i2;
expression e;
initializer list[decl.n] is;
@@

struct i1 i2 = { is,
+ .fld = e
- e
 ,...};
// </smpl>

Not sure why, but some tables are still using the old way,
but at least several of them got fixed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb/dib0700_devices.c