Commit 6b4316ae authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Linus Walleij

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: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 73f8fed0
...@@ -1616,50 +1616,74 @@ struct pinctrl_xway_soc { ...@@ -1616,50 +1616,74 @@ struct pinctrl_xway_soc {
/* xway xr9 series (DEPRECATED: Use XWAY xRX100/xRX200 Family) */ /* xway xr9 series (DEPRECATED: Use XWAY xRX100/xRX200 Family) */
static struct pinctrl_xway_soc xr9_pinctrl = { static struct pinctrl_xway_soc xr9_pinctrl = {
XR9_MAX_PIN, xway_mfp, .pin_count = XR9_MAX_PIN,
xway_grps, ARRAY_SIZE(xway_grps), .mfp = xway_mfp,
xrx_funcs, ARRAY_SIZE(xrx_funcs), .grps = xway_grps,
xway_exin_pin_map, 6 .num_grps = ARRAY_SIZE(xway_grps),
.funcs = xrx_funcs,
.num_funcs = ARRAY_SIZE(xrx_funcs),
.exin = xway_exin_pin_map,
.num_exin = 6
}; };
/* XWAY AMAZON Family */ /* XWAY AMAZON Family */
static struct pinctrl_xway_soc ase_pinctrl = { static struct pinctrl_xway_soc ase_pinctrl = {
ASE_MAX_PIN, ase_mfp, .pin_count = ASE_MAX_PIN,
ase_grps, ARRAY_SIZE(ase_grps), .mfp = ase_mfp,
ase_funcs, ARRAY_SIZE(ase_funcs), .grps = ase_grps,
ase_exin_pin_map, 3 .num_grps = ARRAY_SIZE(ase_grps),
.funcs = ase_funcs,
.num_funcs = ARRAY_SIZE(ase_funcs),
.exin = ase_exin_pin_map,
.num_exin = 3
}; };
/* XWAY DANUBE Family */ /* XWAY DANUBE Family */
static struct pinctrl_xway_soc danube_pinctrl = { static struct pinctrl_xway_soc danube_pinctrl = {
DANUBE_MAX_PIN, danube_mfp, .pin_count = DANUBE_MAX_PIN,
danube_grps, ARRAY_SIZE(danube_grps), .mfp = danube_mfp,
danube_funcs, ARRAY_SIZE(danube_funcs), .grps = danube_grps,
danube_exin_pin_map, 3 .num_grps = ARRAY_SIZE(danube_grps),
.funcs = danube_funcs,
.num_funcs = ARRAY_SIZE(danube_funcs),
.exin = danube_exin_pin_map,
.num-exin = 3
}; };
/* XWAY xRX100 Family */ /* XWAY xRX100 Family */
static struct pinctrl_xway_soc xrx100_pinctrl = { static struct pinctrl_xway_soc xrx100_pinctrl = {
XRX100_MAX_PIN, xrx100_mfp, .pin_count = XRX100_MAX_PIN,
xrx100_grps, ARRAY_SIZE(xrx100_grps), .mfp = xrx100_mfp,
xrx100_funcs, ARRAY_SIZE(xrx100_funcs), .grps = xrx100_grps,
xrx100_exin_pin_map, 6 .num_grps = ARRAY_SIZE(xrx100_grps),
.funcs = xrx100_funcs,
.num_funcs = ARRAY_SIZE(xrx100_funcs),
.exin = xrx100_exin_pin_map,
.num_exin = 6
}; };
/* XWAY xRX200 Family */ /* XWAY xRX200 Family */
static struct pinctrl_xway_soc xrx200_pinctrl = { static struct pinctrl_xway_soc xrx200_pinctrl = {
XRX200_MAX_PIN, xrx200_mfp, .pin_count = XRX200_MAX_PIN,
xrx200_grps, ARRAY_SIZE(xrx200_grps), .mfp = xrx200_mfp,
xrx200_funcs, ARRAY_SIZE(xrx200_funcs), .grps = xrx200_grps,
xrx200_exin_pin_map, 6 .num_grps = ARRAY_SIZE(xrx200_grps),
.funcs = xrx200_funcs,
.num_funcs = ARRAY_SIZE(xrx200_funcs),
.exin = xrx200_exin_pin_map,
.num_exin = 6
}; };
/* XWAY xRX300 Family */ /* XWAY xRX300 Family */
static struct pinctrl_xway_soc xrx300_pinctrl = { static struct pinctrl_xway_soc xrx300_pinctrl = {
XRX300_MAX_PIN, xrx300_mfp, .pin_count = XRX300_MAX_PIN,
xrx300_grps, ARRAY_SIZE(xrx300_grps), .mfp = xrx300_mfp,
xrx300_funcs, ARRAY_SIZE(xrx300_funcs), .grps = xrx300_grps,
xrx300_exin_pin_map, 5 .num_grps = ARRAY_SIZE(xrx300_grps),
.funcs = xrx300_funcs,
.num_funcs = ARRAY_SIZE(xrx300_funcs),
.exin = xrx300_exin_pin_map,
.num_exin = 5
}; };
static struct pinctrl_gpio_range xway_gpio_range = { static struct pinctrl_gpio_range xway_gpio_range = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment