diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-08-23 07:20:25 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-08-25 05:45:34 -0400 |
commit | b2b7adeb21745266326d453b95e5d0b1b9cb1d4e (patch) | |
tree | 666582cea47c0f597e74ea7f2abc79bc3fd14c90 /drivers/pwm | |
parent | e0c86a3b63e948e51a47d17382c7cd8711d19750 (diff) |
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/pwm-lpss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c index 7a7a934a7757..e9798253a16f 100644 --- a/drivers/pwm/pwm-lpss.c +++ b/drivers/pwm/pwm-lpss.c | |||
@@ -37,13 +37,13 @@ struct pwm_lpss_chip { | |||
37 | 37 | ||
38 | /* BayTrail */ | 38 | /* BayTrail */ |
39 | const struct pwm_lpss_boardinfo pwm_lpss_byt_info = { | 39 | const struct pwm_lpss_boardinfo pwm_lpss_byt_info = { |
40 | 25000000 | 40 | .clk_rate = 25000000 |
41 | }; | 41 | }; |
42 | EXPORT_SYMBOL_GPL(pwm_lpss_byt_info); | 42 | EXPORT_SYMBOL_GPL(pwm_lpss_byt_info); |
43 | 43 | ||
44 | /* Braswell */ | 44 | /* Braswell */ |
45 | const struct pwm_lpss_boardinfo pwm_lpss_bsw_info = { | 45 | const struct pwm_lpss_boardinfo pwm_lpss_bsw_info = { |
46 | 19200000 | 46 | .clk_rate = 19200000 |
47 | }; | 47 | }; |
48 | EXPORT_SYMBOL_GPL(pwm_lpss_bsw_info); | 48 | EXPORT_SYMBOL_GPL(pwm_lpss_bsw_info); |
49 | 49 | ||