]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: dvb-usb: dibusb-mb: use an enum for the device number
authorMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 28 Mar 2022 20:41:36 +0000 (22:41 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 18 Apr 2022 05:36:44 +0000 (07:36 +0200)
commitd763479abd67fc67a13aabe0ce19b4d775fbdcee
treea14a9fdcacafe2fb197436556c9772f47d1f2270
parent5710a24b34576a8873ee836953575fdb234b37e2
media: dvb-usb: dibusb-mb: 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/a300c26ad4e9bb913e86eeaf0ec7d72b9e7d5d3e.1648499509.git.mchehab@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/dvb-usb/dibusb-mb.c
include/media/dvb-usb-ids.h