Al 07/01/12 09:11, En/na Jonathan Nieder ha escrit: > The af9005_properties and af9015_properties tables make use of USB ids > from the USB id tables with hardcoded indices, as in > "&af9015_usb_table[30]". Adding new entries before the end breaks > such references, so everyone has had to carefully tiptoe to only add > entries at the end of the list. > > In the spirit of "dw2102: use symbolic names for dw2102_table > indices", use C99-style initializers with symbolic names for each > index to avoid this. In the new regime, properties tables referring > to the USB ids have names like "&af9015_usb_table[CINERGY_T_STICK_RC]" > that do not change meaning when items in the USB id table are > reordered. > > Encouraged-by: Mauro Carvalho Chehab <mche...@redhat.com> > Signed-off-by: Jonathan Nieder <jrnie...@gmail.com>
Seems good to me, didn't know you could do that in C. Acked-by: Luca Olivetti <l...@ventoso.org> Bye -- Luca -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html