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
110#define USB_PID_ANUBIS_LIFEVIEW_TV_WALKER_TWIN_WARM 0x0513110#define USB_PID_ANUBIS_LIFEVIEW_TV_WALKER_TWIN_WARM 0x0513
111#define USB_PID_ANUBIS_MSI_DIGI_VOX_MINI_II 0x1513111#define USB_PID_ANUBIS_MSI_DIGI_VOX_MINI_II 0x1513
112#define USB_PID_ANYSEE 0x861f112#define USB_PID_ANYSEE 0x861f
113#define USB_PID_ARTEC_T14BR 0x810f
114#define USB_PID_ASUS_U3000 0x171f113#define USB_PID_ASUS_U3000 0x171f
115#define USB_PID_ASUS_U3000H 0x1736114#define USB_PID_ASUS_U3000H 0x1736
116#define USB_PID_ASUS_U3100 0x173f115#define USB_PID_ASUS_U3100 0x173f
@@ -158,7 +157,6 @@ · 41 unmodified lines
158#define USB_PID_CONCEPTRONIC_CTVDIGRCU 0xe397157#define USB_PID_CONCEPTRONIC_CTVDIGRCU 0xe397
159#define USB_PID_CONEXANT_D680_DMB 0x86d6158#define USB_PID_CONEXANT_D680_DMB 0x86d6
160#define USB_PID_CPYTO_REDI_PC50A 0xa803159#define USB_PID_CPYTO_REDI_PC50A 0xa803
161#define USB_PID_CREATIX_CTX1921 0x1921
162#define USB_PID_CTVDIGDUAL_V2 0xe410160#define USB_PID_CTVDIGDUAL_V2 0xe410
163#define USB_PID_CYPRESS_DW2101 0x2101161#define USB_PID_CYPRESS_DW2101 0x2101
164#define USB_PID_CYPRESS_DW2102 0x2102162#define USB_PID_CYPRESS_DW2102 0x2102
@@ -226,6 +224,7 @@ · 61 unmodified lines
226#define USB_PID_EMPIA_DIGIVOX_MINI_SL_WARM 0xe361224#define USB_PID_EMPIA_DIGIVOX_MINI_SL_WARM 0xe361
227#define USB_PID_EMPIA_VSTREAM_COLD 0x17de225#define USB_PID_EMPIA_VSTREAM_COLD 0x17de
228#define USB_PID_EMPIA_VSTREAM_WARM 0x17df226#define USB_PID_EMPIA_VSTREAM_WARM 0x17df
227#define USB_PID_EVOLUTEPC_TVWAY_PLUS 0x0002
229#define USB_PID_EVOLVEO_XTRATV_STICK 0xa115228#define USB_PID_EVOLVEO_XTRATV_STICK 0xa115
230#define USB_PID_FREECOM_DVBT 0x0160229#define USB_PID_FREECOM_DVBT 0x0160
231#define USB_PID_FREECOM_DVBT_2 0x0161230#define USB_PID_FREECOM_DVBT_2 0x0161
@@ -288,10 +287,15 @@ · 56 unmodified lines
288#define USB_PID_KYE_DVB_T_COLD 0x701e287#define USB_PID_KYE_DVB_T_COLD 0x701e
289#define USB_PID_KYE_DVB_T_WARM 0x701f288#define USB_PID_KYE_DVB_T_WARM 0x701f
290#define USB_PID_LEADTEK_WINFAST_DTV_DONGLE_COLD 0x6025289#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
291#define USB_PID_LEADTEK_WINFAST_DTV_DONGLE_WARM 0x6026293#define USB_PID_LEADTEK_WINFAST_DTV_DONGLE_WARM 0x6026
292#define USB_PID_LITEON_DVB_T_COLD 0xf000294#define USB_PID_LITEON_DVB_T_COLD 0xf000
293#define USB_PID_LITEON_DVB_T_WARM 0xf001295#define USB_PID_LITEON_DVB_T_WARM 0xf001
296#define USB_PID_MEDION_CREATIX_CTX1921 0x1921
294#define USB_PID_MEDION_MD95700 0x0932297#define USB_PID_MEDION_MD95700 0x0932
298#define USB_PID_MICROSOFT_XBOX_ONE_TUNER 0x02d5
295#define USB_PID_MIGLIA_WT220U_ZAP250_COLD 0x0220299#define USB_PID_MIGLIA_WT220U_ZAP250_COLD 0x0220
296#define USB_PID_MSI_DIGIVOX_DUO 0x8801300#define USB_PID_MSI_DIGIVOX_DUO 0x8801
297#define USB_PID_MSI_DIGI_VOX_MINI_III 0x8807301#define USB_PID_MSI_DIGI_VOX_MINI_III 0x8807
@@ -313,6 +317,9 @@ · 15 unmodified lines
313#define USB_PID_PCTV_200E 0x020e317#define USB_PID_PCTV_200E 0x020e
314#define USB_PID_PCTV_78E 0x025a318#define USB_PID_PCTV_78E 0x025a
315#define USB_PID_PCTV_79E 0x0262319#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
316#define USB_PID_PINNACLE_EXPRESSCARD_320CX 0x022e323#define USB_PID_PINNACLE_EXPRESSCARD_320CX 0x022e
317#define USB_PID_PINNACLE_PCTV2000E 0x022c324#define USB_PID_PINNACLE_PCTV2000E 0x022c
318#define USB_PID_PINNACLE_PCTV282E 0x0248325#define USB_PID_PINNACLE_PCTV282E 0x0248
@@ -408,10 +415,10 @@ · 89 unmodified lines
408#define USB_PID_TREKSTOR_DVBT 0x901b415#define USB_PID_TREKSTOR_DVBT 0x901b
409#define USB_PID_TREKSTOR_TERRES_2_0 0xC803416#define USB_PID_TREKSTOR_TERRES_2_0 0xC803
410#define USB_PID_TURBOX_DTT_2000 0xd3a4417#define USB_PID_TURBOX_DTT_2000 0xd3a4
411#define USB_PID_TVWAY_PLUS 0x0002
412#define USB_PID_TWINHAN_VP7021_WARM 0x3208418#define USB_PID_TWINHAN_VP7021_WARM 0x3208
413#define USB_PID_TWINHAN_VP7041_COLD 0x3201419#define USB_PID_TWINHAN_VP7041_COLD 0x3201
414#define USB_PID_TWINHAN_VP7041_WARM 0x3202420#define USB_PID_TWINHAN_VP7041_WARM 0x3202
421#define USB_PID_ULTIMA_ARTEC_T14BR 0x810f
415#define USB_PID_ULTIMA_ARTEC_T14_COLD 0x810b422#define USB_PID_ULTIMA_ARTEC_T14_COLD 0x810b
416#define USB_PID_ULTIMA_ARTEC_T14_WARM 0x810c423#define USB_PID_ULTIMA_ARTEC_T14_WARM 0x810c
417#define USB_PID_ULTIMA_TVBOX_AN2235_COLD 0x8107424#define USB_PID_ULTIMA_TVBOX_AN2235_COLD 0x8107
@@ -450,13 +457,9 @@ · 32 unmodified lines
450#define USB_PID_WINFAST_DTV2000DS 0x6a04457#define USB_PID_WINFAST_DTV2000DS 0x6a04
451#define USB_PID_WINFAST_DTV2000DS_PLUS 0x6f12458#define USB_PID_WINFAST_DTV2000DS_PLUS 0x6f12
452#define USB_PID_WINFAST_DTV_DONGLE_GOLD 0x6029459#define USB_PID_WINFAST_DTV_DONGLE_GOLD 0x6029
453#define USB_PID_WINFAST_DTV_DONGLE_H 0x60f6
454#define USB_PID_WINFAST_DTV_DONGLE_MINID 0x6f0f460#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
457#define USB_PID_WINTV_SOLOHD 0x0264461#define USB_PID_WINTV_SOLOHD 0x0264
458#define USB_PID_WINTV_SOLOHD_2 0x8268462#define USB_PID_WINTV_SOLOHD_2 0x8268
459#define USB_PID_XBOX_ONE_TUNER 0x02d5
460#define USB_PID_XTENSIONS_XD_380 0x0381463#define USB_PID_XTENSIONS_XD_380 0x0381
461#define USB_PID_YUAN_EC372S 0x1edc464#define USB_PID_YUAN_EC372S 0x1edc
462#define USB_PID_YUAN_MC770 0x0871465#define USB_PID_YUAN_MC770 0x0871