diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-10-14 02:52:26 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-14 04:18:17 +0400 |
commit | 473b86451276d6d342ecd26d5e503163c30ea974 (patch) | |
tree | 449d1522bfd7ee9719c3415e8a4594e238dc9d1d /drivers/rtc/rtc-s3c.c | |
parent | 87d672cbd512c8dca01423381c94ac3658db0a18 (diff) | |
download | linux-473b86451276d6d342ecd26d5e503163c30ea974.tar.xz |
rtc: 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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-s3c.c')
0 files changed, 0 insertions, 0 deletions