From: Mauro Carvalho Chehab Date: Mon, 22 Sep 2014 21:57:45 +0000 (-0300) Subject: [media] dib0700_devices: Use c99 initializers for structures. X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09628b2c2105722e61b8c799531304a1cd317b2e;p=pandora-kernel.git [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/) // @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 ,...}; // 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 --- Reading git-diff-tree failed