mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 09:44:18 +08: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:
parent
af38e42b04
commit
0fcefb39c8
@ -2056,7 +2056,7 @@ static void cx23885_finidev(struct pci_dev *pci_dev)
|
|||||||
kfree(dev);
|
kfree(dev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct pci_device_id cx23885_pci_tbl[] = {
|
static const struct pci_device_id cx23885_pci_tbl[] = {
|
||||||
{
|
{
|
||||||
/* CX23885 */
|
/* CX23885 */
|
||||||
.vendor = 0x14f1,
|
.vendor = 0x14f1,
|
||||||
|
Loading…
Reference in New Issue
Block a user