diff options
author | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-03-28 22:41:32 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-04-18 07:36:44 +0200 |
commit | 5c1a56c9f0658d9b2d4be333fd896cd1b6cbaa82 (patch) | |
tree | d6f3f6a2d109511c531debf809eb1c1364c98630 /include/media | |
parent | ff9b0c51d88619ee9e123fce87b8a931bc484d93 (diff) | |
download | linux-5c1a56c9f0658d9b2d4be333fd896cd1b6cbaa82.tar.gz linux-5c1a56c9f0658d9b2d4be333fd896cd1b6cbaa82.tar.bz2 linux-5c1a56c9f0658d9b2d4be333fd896cd1b6cbaa82.zip |
media: dvb-usb: ttusb2: 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.
Link: https://lore.kernel.org/linux-media/b447d9fd3832da5eff6267e8fe742c431f1133f2.1648499509.git.mchehab@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/dvb-usb-ids.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/dvb-usb-ids.h b/include/media/dvb-usb-ids.h index ed6e37f23cbc..0fad68bfe6f9 100644 --- a/include/media/dvb-usb-ids.h +++ b/include/media/dvb-usb-ids.h @@ -312,8 +312,6 @@ #define USB_PID_PCTV_2002E 0x025c #define USB_PID_PCTV_2002E_SE 0x025d #define USB_PID_PCTV_200E 0x020e -#define USB_PID_PCTV_400E 0x020f -#define USB_PID_PCTV_450E 0x0222 #define USB_PID_PCTV_78E 0x025a #define USB_PID_PCTV_79E 0x0262 #define USB_PID_PINNACLE_EXPRESSCARD_320CX 0x022e @@ -329,6 +327,8 @@ #define USB_PID_PINNACLE_PCTV74E 0x0246 #define USB_PID_PINNACLE_PCTV801E 0x023a #define USB_PID_PINNACLE_PCTV801E_SE 0x023b +#define USB_PID_PINNACLE_PCTV_400E 0x020f +#define USB_PID_PINNACLE_PCTV_450E 0x0222 #define USB_PID_PINNACLE_PCTV_452E 0x021f #define USB_PID_PINNACLE_PCTV_DUAL_DIVERSITY_DVB_T 0x0229 #define USB_PID_PINNACLE_PCTV_DVB_T_FLASH 0x0228 |