mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
media: netup_unidvb: constify pci_device_id
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by <linux/pci.h> work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
8c8808e01a
commit
af38e42b04
1 changed files with 1 additions and 1 deletions
|
@ -1014,7 +1014,7 @@ static void netup_unidvb_finidev(struct pci_dev *pci_dev)
|
|||
}
|
||||
|
||||
|
||||
static struct pci_device_id netup_unidvb_pci_tbl[] = {
|
||||
static const struct pci_device_id netup_unidvb_pci_tbl[] = {
|
||||
{ PCI_DEVICE(0x1b55, 0x18f6) }, /* hw rev. 1.3 */
|
||||
{ PCI_DEVICE(0x1b55, 0x18f7) }, /* hw rev. 1.4 */
|
||||
{ 0, }
|
||||
|
|
Loading…
Reference in a new issue