On Tue, 27 Nov 2007, Stephen Rothwell wrote:
> On Mon, 26 Nov 2007 18:24:57 +0100 Geert Uytterhoeven <[EMAIL PROTECTED]> 
> wrote:
> > @@ -594,20 +594,21 @@ static const struct {
> >     unsigned mask : 19;
> >     unsigned id :  4;
> >  } ps3av_preferred_modes[] = {
> > -   { .mask = PS3AV_RESBIT_WUXGA            << SHIFT_VESA,  .id = 13 },
> > -   { .mask = PS3AV_RESBIT_1920x1080P       << SHIFT_60,    .id = 5 },
> > -   { .mask = PS3AV_RESBIT_1920x1080P       << SHIFT_50,    .id = 10 },
> > -   { .mask = PS3AV_RESBIT_1920x1080I       << SHIFT_60,    .id = 4 },
> > -   { .mask = PS3AV_RESBIT_1920x1080I       << SHIFT_50,    .id = 9 },
> > -   { .mask = PS3AV_RESBIT_SXGA             << SHIFT_VESA,  .id = 12 },
> > -   { .mask = PS3AV_RESBIT_WXGA             << SHIFT_VESA,  .id = 11 },
> > -   { .mask = PS3AV_RESBIT_1280x720P        << SHIFT_60,    .id = 3 },
> > -   { .mask = PS3AV_RESBIT_1280x720P        << SHIFT_50,    .id = 8 },
> > -   { .mask = PS3AV_RESBIT_720x480P         << SHIFT_60,    .id = 2 },
> > -   { .mask = PS3AV_RESBIT_720x576P         << SHIFT_50,    .id = 7 },
> > +   { PS3AV_RESBIT_WUXGA      << SHIFT_VESA, PS3AV_MODE_WUXGA   },
> > +   { PS3AV_RESBIT_1920x1080P << SHIFT_60,   PS3AV_MODE_1080P60 },
> > +   { PS3AV_RESBIT_1920x1080P << SHIFT_50,   PS3AV_MODE_1080P50 },
> > +   { PS3AV_RESBIT_1920x1080I << SHIFT_60,   PS3AV_MODE_1080I60 },
> > +   { PS3AV_RESBIT_1920x1080I << SHIFT_50,   PS3AV_MODE_1080I50 },
> > +   { PS3AV_RESBIT_SXGA       << SHIFT_VESA, PS3AV_MODE_SXGA    },
> > +   { PS3AV_RESBIT_WXGA       << SHIFT_VESA, PS3AV_MODE_WXGA    },
> > +   { PS3AV_RESBIT_1280x720P  << SHIFT_60,   PS3AV_MODE_720P60  },
> > +   { PS3AV_RESBIT_1280x720P  << SHIFT_50,   PS3AV_MODE_720P50  },
> > +   { PS3AV_RESBIT_720x480P   << SHIFT_60,   PS3AV_MODE_480P    },
> > +   { PS3AV_RESBIT_720x576P   << SHIFT_50,   PS3AV_MODE_576P    },
> 
> Why did you remove the C99 style initialisers?

Because else things no longer fit on one line.
I prefered a clean structural overview over the protection against the
(almost nonexisting) risk of initializing the wrong member.

With kind regards,
 
Geert Uytterhoeven
Software Architect

Sony Network and Software Technology Center Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
 
Phone:    +32 (0)2 700 8453     
Fax:      +32 (0)2 700 8622     
E-mail:   [EMAIL PROTECTED]     
Internet: http://www.sony-europe.com/
        
Sony Network and Software Technology Center Europe      
A division of Sony Service Centre (Europe) N.V. 
Registered office: Technologielaan 7 · B-1840 Londerzeel · Belgium      
VAT BE 0413.825.160 · RPR Brussels      
Fortis Bank Zaventem · Swift GEBABEBB08A · IBAN BE39001382358619
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev

Reply via email to