History

media: dvb-usb: dib0700_devices: use an enum for the device number

The device number is currently a value that needs to be the same on two separate tables, but the code doesn't actually enforce it, leading to errors as boards get added or removed. Fix it by using an enum.

Mauro Carvalho Chehab committed 4 years ago

Commit 3d591421 parent 281b21c2 files · +268 −177Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/media/dvb-usb-ids.h+10−7
@@ -110,7 +110,6 @@ · 109 unmodified lines
110110 #define USB_PID_ANUBIS_LIFEVIEW_TV_WALKER_TWIN_WARM 0x0513
111111 #define USB_PID_ANUBIS_MSI_DIGI_VOX_MINI_II 0x1513
112112 #define USB_PID_ANYSEE 0x861f
113−#define USB_PID_ARTEC_T14BR 0x810f
114113 #define USB_PID_ASUS_U3000 0x171f
115114 #define USB_PID_ASUS_U3000H 0x1736
116115 #define USB_PID_ASUS_U3100 0x173f
@@ -158,7 +157,6 @@ · 41 unmodified lines
158157 #define USB_PID_CONCEPTRONIC_CTVDIGRCU 0xe397
159158 #define USB_PID_CONEXANT_D680_DMB 0x86d6
160159 #define USB_PID_CPYTO_REDI_PC50A 0xa803
161−#define USB_PID_CREATIX_CTX1921 0x1921
162160 #define USB_PID_CTVDIGDUAL_V2 0xe410
163161 #define USB_PID_CYPRESS_DW2101 0x2101
164162 #define USB_PID_CYPRESS_DW2102 0x2102
@@ -226,6 +224,7 @@ · 61 unmodified lines
226224 #define USB_PID_EMPIA_DIGIVOX_MINI_SL_WARM 0xe361
227225 #define USB_PID_EMPIA_VSTREAM_COLD 0x17de
228226 #define USB_PID_EMPIA_VSTREAM_WARM 0x17df
227+#define USB_PID_EVOLUTEPC_TVWAY_PLUS 0x0002
229228 #define USB_PID_EVOLVEO_XTRATV_STICK 0xa115
230229 #define USB_PID_FREECOM_DVBT 0x0160
231230 #define USB_PID_FREECOM_DVBT_2 0x0161
@@ -288,10 +287,15 @@ · 56 unmodified lines
288287 #define USB_PID_KYE_DVB_T_COLD 0x701e
289288 #define USB_PID_KYE_DVB_T_WARM 0x701f
290289 #define USB_PID_LEADTEK_WINFAST_DTV_DONGLE_COLD 0x6025
290+#define USB_PID_LEADTEK_WINFAST_DTV_DONGLE_H 0x60f6
291+#define USB_PID_LEADTEK_WINFAST_DTV_DONGLE_STK7700P 0x6f00
292+#define USB_PID_LEADTEK_WINFAST_DTV_DONGLE_STK7700P_2 0x6f01
291293 #define USB_PID_LEADTEK_WINFAST_DTV_DONGLE_WARM 0x6026
292294 #define USB_PID_LITEON_DVB_T_COLD 0xf000
293295 #define USB_PID_LITEON_DVB_T_WARM 0xf001
296+#define USB_PID_MEDION_CREATIX_CTX1921 0x1921
294297 #define USB_PID_MEDION_MD95700 0x0932
298+#define USB_PID_MICROSOFT_XBOX_ONE_TUNER 0x02d5
295299 #define USB_PID_MIGLIA_WT220U_ZAP250_COLD 0x0220
296300 #define USB_PID_MSI_DIGIVOX_DUO 0x8801
297301 #define USB_PID_MSI_DIGI_VOX_MINI_III 0x8807
@@ -313,6 +317,9 @@ · 15 unmodified lines
313317 #define USB_PID_PCTV_200E 0x020e
314318 #define USB_PID_PCTV_78E 0x025a
315319 #define USB_PID_PCTV_79E 0x0262
320+#define USB_PID_PCTV_DIBCOM_STK8096PVR 0x1faa
321+#define USB_PID_PCTV_PINNACLE_PCTV282E 0x0248
322+#define USB_PID_PCTV_PINNACLE_PCTV73ESE 0x0245
316323 #define USB_PID_PINNACLE_EXPRESSCARD_320CX 0x022e
317324 #define USB_PID_PINNACLE_PCTV2000E 0x022c
318325 #define USB_PID_PINNACLE_PCTV282E 0x0248
@@ -408,10 +415,10 @@ · 89 unmodified lines
408415 #define USB_PID_TREKSTOR_DVBT 0x901b
409416 #define USB_PID_TREKSTOR_TERRES_2_0 0xC803
410417 #define USB_PID_TURBOX_DTT_2000 0xd3a4
411−#define USB_PID_TVWAY_PLUS 0x0002
412418 #define USB_PID_TWINHAN_VP7021_WARM 0x3208
413419 #define USB_PID_TWINHAN_VP7041_COLD 0x3201
414420 #define USB_PID_TWINHAN_VP7041_WARM 0x3202
421+#define USB_PID_ULTIMA_ARTEC_T14BR 0x810f
415422 #define USB_PID_ULTIMA_ARTEC_T14_COLD 0x810b
416423 #define USB_PID_ULTIMA_ARTEC_T14_WARM 0x810c
417424 #define USB_PID_ULTIMA_TVBOX_AN2235_COLD 0x8107
@@ -450,13 +457,9 @@ · 32 unmodified lines
450457 #define USB_PID_WINFAST_DTV2000DS 0x6a04
451458 #define USB_PID_WINFAST_DTV2000DS_PLUS 0x6f12
452459 #define USB_PID_WINFAST_DTV_DONGLE_GOLD 0x6029
453−#define USB_PID_WINFAST_DTV_DONGLE_H 0x60f6
454460 #define USB_PID_WINFAST_DTV_DONGLE_MINID 0x6f0f
455−#define USB_PID_WINFAST_DTV_DONGLE_STK7700P 0x6f00
456−#define USB_PID_WINFAST_DTV_DONGLE_STK7700P_2 0x6f01
457461 #define USB_PID_WINTV_SOLOHD 0x0264
458462 #define USB_PID_WINTV_SOLOHD_2 0x8268
459−#define USB_PID_XBOX_ONE_TUNER 0x02d5
460463 #define USB_PID_XTENSIONS_XD_380 0x0381
461464 #define USB_PID_YUAN_EC372S 0x1edc
462465 #define USB_PID_YUAN_MC770 0x0871