summaryrefslogtreecommitdiff
path: root/drivers/media/video/em28xx
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2012-01-07 07:11:27 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-11 00:46:14 (GMT)
commitd07b901f9dc22977c2c04f320a9cef19e5298e7e (patch)
tree0f63c671c433658d8c4c7d77ae8ce5c99b92afc1 /drivers/media/video/em28xx
parent7a6f6c29d264cdd2fe0eb3d923217eed5f0ad134 (diff)
downloadlinux-d07b901f9dc22977c2c04f320a9cef19e5298e7e.tar.xz
[media] af9005, af9015: use symbolic names for USB id table indices
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 <mchehab@redhat.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Luca Olivetti <luca@ventoso.org> Acked-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/em28xx')
0 files changed, 0 insertions, 0 deletions