]> git.baikalelectronics.ru Git - kernel.git/commit
media: dvb-usb: dtt200u: use an enum for the device number
authorMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 28 Mar 2022 20:41:23 +0000 (22:41 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 18 Apr 2022 05:36:43 +0000 (07:36 +0200)
commit7c7e77f4fe1911a612a9cdeb6e1b1b1d17208afd
tree0512d1210816052398b6b50adeb26e38fb8d635a
parent670674ada0baa769a47a66f3c1ce3cb7e97ae215
media: dvb-usb: dtt200u: 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/9fa3d1add4c58e1320dcc18578fda2d0106becda.1648499509.git.mchehab@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/dvb-usb/dtt200u.c
include/media/dvb-usb-ids.h