mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 15:51:40 -04:00
media: cx23885: 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:
committed by
Mauro Carvalho Chehab
parent
af38e42b04
commit
0fcefb39c8
@@ -2056,7 +2056,7 @@ static void cx23885_finidev(struct pci_dev *pci_dev)
|
||||
kfree(dev);
|
||||
}
|
||||
|
||||
static struct pci_device_id cx23885_pci_tbl[] = {
|
||||
static const struct pci_device_id cx23885_pci_tbl[] = {
|
||||
{
|
||||
/* CX23885 */
|
||||
.vendor = 0x14f1,
|
||||
|
||||
Reference in New Issue
Block a user