diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-08-23 07:20:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-22 17:17:08 -0400 |
commit | 1148f6fdb0136b6cf9ec5e1ff6db2dfa899b3906 (patch) | |
tree | 5a3c5d6a4081660d148a936cada71fc8a7076b0c | |
parent | 5d40018623a53f5e21cb3393ab9ef2a3a7bc57dd (diff) |
[media] v4l: ti-vpe: 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: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/platform/ti-vpe/vpe.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index febeca70211b..7c3c7469da1d 100644 --- a/drivers/media/platform/ti-vpe/vpe.c +++ b/drivers/media/platform/ti-vpe/vpe.c | |||
@@ -139,12 +139,12 @@ struct vpe_dei_regs { | |||
139 | * default expert DEI register values, unlikely to be modified. | 139 | * default expert DEI register values, unlikely to be modified. |
140 | */ | 140 | */ |
141 | static const struct vpe_dei_regs dei_regs = { | 141 | static const struct vpe_dei_regs dei_regs = { |
142 | 0x020C0804u, | 142 | .mdt_spacial_freq_thr_reg = 0x020C0804u, |
143 | 0x0118100Fu, | 143 | .edi_config_reg = 0x0118100Fu, |
144 | 0x08040200u, | 144 | .edi_lut_reg0 = 0x08040200u, |
145 | 0x1010100Cu, | 145 | .edi_lut_reg1 = 0x1010100Cu, |
146 | 0x10101010u, | 146 | .edi_lut_reg2 = 0x10101010u, |
147 | 0x10101010u, | 147 | .edi_lut_reg3 = 0x10101010u, |
148 | }; | 148 | }; |
149 | 149 | ||
150 | /* | 150 | /* |