Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1148f6fd authored by Julia Lawall's avatar Julia Lawall Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 5d400186
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -139,12 +139,12 @@ struct vpe_dei_regs {
 * default expert DEI register values, unlikely to be modified.
 * default expert DEI register values, unlikely to be modified.
 */
 */
static const struct vpe_dei_regs dei_regs = {
static const struct vpe_dei_regs dei_regs = {
	0x020C0804u,
	.mdt_spacial_freq_thr_reg = 0x020C0804u,
	0x0118100Fu,
	.edi_config_reg = 0x0118100Fu,
	0x08040200u,
	.edi_lut_reg0 = 0x08040200u,
	0x1010100Cu,
	.edi_lut_reg1 = 0x1010100Cu,
	0x10101010u,
	.edi_lut_reg2 = 0x10101010u,
	0x10101010u,
	.edi_lut_reg3 = 0x10101010u,
};
};


/*
/*