pwm: lpss: use c99 initializers in structures
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 29 Oct 2014 00:52:58 +0000 (08:52 +0800)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:25:24 +0000 (09:25 +0900)
commitf8a8e21d80c7b04f76432e59fc6983584332949b
tree26010162b6e60f6ba7e73295b409e78a98564a6f
parentd0eeb0625985c5b7fa99be8b023eaef4a8ebc8e6
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>
(cherry picked from commit b2b7adeb21745266326d453b95e5d0b1b9cb1d4e)

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
drivers/pwm/pwm-lpss.c