media: dvb-usb: m920x: use an enum for the device number
authorMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 28 Mar 2022 20:41:27 +0000 (22:41 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 18 Apr 2022 05:36:43 +0000 (07:36 +0200)
commit3473fd1711527c24b3d37d6b13cfd341e2d5a3c7
tree044d92c12e380a9cdd5fcc15bf74d351bb0cda13
parent49d53e2d760464c6fc1993a291296ca6dfba83da
media: dvb-usb: m920x: 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/c6f6bab97c39561add54f69a75980f4d453f7c17.1648499509.git.mchehab@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/dvb-usb/m920x.c
include/media/dvb-usb-ids.h