summaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cx23885
diff options
context:
space:
mode:
authorArvind Yadav2017-08-01 19:56:19 +0200
committerMauro Carvalho Chehab2017-08-09 15:44:06 +0200
commit0fcefb39c82febfbb7919c59a581def6281a2f63 (patch)
tree2c8b4a5898fe7cd1d2f55fbef638a161293d0bd2 /drivers/media/pci/cx23885
parentmedia: netup_unidvb: constify pci_device_id (diff)
downloadkernel-qcow2-linux-0fcefb39c82febfbb7919c59a581def6281a2f63.tar.gz
kernel-qcow2-linux-0fcefb39c82febfbb7919c59a581def6281a2f63.tar.xz
kernel-qcow2-linux-0fcefb39c82febfbb7919c59a581def6281a2f63.zip
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>
Diffstat (limited to 'drivers/media/pci/cx23885')
-rw-r--r--drivers/media/pci/cx23885/cx23885-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/cx23885/cx23885-core.c b/drivers/media/pci/cx23885/cx23885-core.c
index 02b5ec549369..8f63df1cb418 100644
--- a/drivers/media/pci/cx23885/cx23885-core.c
+++ b/drivers/media/pci/cx23885/cx23885-core.c
@@ -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,