pinctrl: xway: Change structure initialisation to c99 style
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 11 Jun 2016 04:02:52 +0000 (09:32 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 13 Jun 2016 12:03:18 +0000 (14:03 +0200)
commit6b4316aecec07db6ac27820720cc2f2d18ea52e9
treea2b097e0c4afb185c307cdc7b09ed6db0474a24e
parent73f8fed031d51868b57835cb1616c6aeea20a8d0
pinctrl: xway: Change structure initialisation to c99 style

Replace the in order struct initialisation style with explicit field
style.

The Coccinelle semantic patch used to make this change is as follows:

@decl@
identifier i1,fld;
type T;
field list[n] fs;
@@

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

@@
identifier decl.i1,i2,decl.fld;
expression e;
position bad.p, bad.fix;
@@

struct i1 i2@p = { ...,
+ .fld = e
- e@fix
 ,...};

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-xway.c