• J
    drm: use c99 initializers in structures · d456ea2e
    Julia Lawall 提交于
    Use c99 initializers for structures.
    
    Drop 0 initializers in drivers/gpu/drm/sti/sti_vtac.c.  A 0x0 initializer
    is left in vtac_mode_aux in drivers/gpu/drm/sti/sti_vtac.c to highlight the
    relation to vtac_mode_main.
    
    A simplified version of the semantic match that finds the first 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>
    
    v2: Drop 0 initializers and add trailing commas at the suggestions of Josh
    Triplett.
    Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr>
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    d456ea2e
drm_edid.c 113.6 KB