From: Jonathan Nieder Date: Fri, 23 Dec 2011 22:00:45 +0000 (-0300) Subject: [media] dw2102: use symbolic names for dw2102_table indices X-Git-Tag: v3.3-rc1~48^2~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27351b139c4ee989d3e1c66dd8794c65d3ba2c38;p=pandora-kernel.git [media] dw2102: use symbolic names for dw2102_table indices dw2102_properties et al refer to entries in the USB-id table using hard-coded indices, as in "&dw2102_table[6]", which means adding new entries before the end of the list has the potential to introduce bugs in code elsewhere in the file. Use C99-style initializers with symbolic names for each index to avoid this. This way, other device tables wanting to reuse the USB ids can use expressions like "&dw2102_table[TEVII_S630]" that do not change as the entries in the table are reordered. Signed-off-by: Jonathan Nieder Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed