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