summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2014-10-29 08:52:58 +0800
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>2015-02-04 11:16:24 +0100
commitf3fceb05764972e1dad23a1e37ff364489ce1ff7 (patch)
tree9e9130675826e664e6fe37bf5d0453cd7dcf55d6 /drivers
parent5b6735c6185986114c85533dedb916d564c4ad7f (diff)
downloadkernel-common-f3fceb05764972e1dad23a1e37ff364489ce1ff7.tar.gz
kernel-common-f3fceb05764972e1dad23a1e37ff364489ce1ff7.tar.bz2
kernel-common-f3fceb05764972e1dad23a1e37ff364489ce1ff7.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pwm/pwm-lpss.c4
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 {
/* BayTrail */
const struct pwm_lpss_boardinfo pwm_lpss_byt_info = {
- 25000000
+ .clk_rate = 25000000
};
EXPORT_SYMBOL_GPL(pwm_lpss_byt_info);
/* Braswell */
const struct pwm_lpss_boardinfo pwm_lpss_bsw_info = {
- 19200000
+ .clk_rate = 19200000
};
EXPORT_SYMBOL_GPL(pwm_lpss_bsw_info);