Commit b2b7adeb authored by Julia Lawall's avatar Julia Lawall Committed by Thierry Reding

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
[thierry.reding: rebased and applied same fix for Braswell]
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent e0c86a3b
...@@ -37,13 +37,13 @@ struct pwm_lpss_chip { ...@@ -37,13 +37,13 @@ struct pwm_lpss_chip {
/* BayTrail */ /* BayTrail */
const struct pwm_lpss_boardinfo pwm_lpss_byt_info = { const struct pwm_lpss_boardinfo pwm_lpss_byt_info = {
25000000 .clk_rate = 25000000
}; };
EXPORT_SYMBOL_GPL(pwm_lpss_byt_info); EXPORT_SYMBOL_GPL(pwm_lpss_byt_info);
/* Braswell */ /* Braswell */
const struct pwm_lpss_boardinfo pwm_lpss_bsw_info = { const struct pwm_lpss_boardinfo pwm_lpss_bsw_info = {
19200000 .clk_rate = 19200000
}; };
EXPORT_SYMBOL_GPL(pwm_lpss_bsw_info); EXPORT_SYMBOL_GPL(pwm_lpss_bsw_info);
......
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