[media] af9035: reorganise USB ID and device list
authorAntti Palosaari <crope@iki.fi>
Fri, 6 Apr 2012 00:58:09 +0000 (21:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Apr 2012 17:56:42 +0000 (14:56 -0300)
Add and rename "Afatech AF9035 reference design" as a first
device in the list since it sounds logical to keep reference
design IDs on top of the list.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9035.c

index e822706629db114ffad42f3c6bab647f1a442571..9f962428368c00facf23bc1c23e4e633292ee8c6 100644 (file)
@@ -932,9 +932,9 @@ err:
 }
 
 enum af9035_id_entry {
-       AF9035_0CCD_0093,
        AF9035_15A4_9035,
        AF9035_15A4_1001,
+       AF9035_0CCD_0093,
        AF9035_07CA_A835,
        AF9035_07CA_B835,
        AF9035_07CA_1867,
@@ -943,12 +943,12 @@ enum af9035_id_entry {
 };
 
 static struct usb_device_id af9035_id[] = {
-       [AF9035_0CCD_0093] = {
-               USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_T_STICK)},
        [AF9035_15A4_9035] = {
                USB_DEVICE(USB_VID_AFATECH, USB_PID_AFATECH_AF9035)},
        [AF9035_15A4_1001] = {
                USB_DEVICE(USB_VID_AFATECH, USB_PID_AFATECH_AF9035_2)},
+       [AF9035_0CCD_0093] = {
+               USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_T_STICK)},
        [AF9035_07CA_A835] = {
                USB_DEVICE(USB_VID_AVERMEDIA, USB_PID_AVERMEDIA_A835)},
        [AF9035_07CA_B835] = {
@@ -1004,15 +1004,15 @@ static struct dvb_usb_device_properties af9035_properties[] = {
                .num_device_descs = 5,
                .devices = {
                        {
-                               .name = "TerraTec Cinergy T Stick",
+                               .name = "Afatech AF9035 reference design",
                                .cold_ids = {
-                                       &af9035_id[AF9035_0CCD_0093],
+                                       &af9035_id[AF9035_15A4_9035],
+                                       &af9035_id[AF9035_15A4_1001],
                                },
                        }, {
-                               .name = "Afatech Technologies DVB-T stick",
+                               .name = "TerraTec Cinergy T Stick",
                                .cold_ids = {
-                                       &af9035_id[AF9035_15A4_9035],
-                                       &af9035_id[AF9035_15A4_1001],
+                                       &af9035_id[AF9035_0CCD_0093],
                                },
                        }, {
                                .name = "AVerMedia AVerTV Volar HD/PRO (A835)",