]> git.karo-electronics.de Git - linux-beck.git/commit
pwm: lpss: use c99 initializers in structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 23 Aug 2014 11:20:25 +0000 (13:20 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 25 Aug 2014 09:45:34 +0000 (11:45 +0200)
commitb2b7adeb21745266326d453b95e5d0b1b9cb1d4e
tree666582cea47c0f597e74ea7f2abc79bc3fd14c90
parente0c86a3b63e948e51a47d17382c7cd8711d19750
pwm: lpss: use c99 initializers in structures

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>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
[thierry.reding: rebased and applied same fix for Braswell]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpss.c