]> git.baikalelectronics.ru Git - kernel.git/commit
media: dvb-usb: vp7045: use an enum for the device number
authorMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 28 Mar 2022 20:41:35 +0000 (22:41 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 18 Apr 2022 05:36:44 +0000 (07:36 +0200)
commitd215d0a6cd8cfabefaa0aaecfaa75cf9a0b7745a
tree5bdca69e2f0a604343e452231ea590c2b06f0739
parentb70a52d2a02218cca069bd1aee570bc6eec36668
media: dvb-usb: vp7045: 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/0241bf842bf592dfa01b0ef4916afda396194f98.1648499509.git.mchehab@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/dvb-usb/vp7045.c
include/media/dvb-usb-ids.h