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