projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82c055c
)
media: zoran: constify pci_device_id
author
Arvind Yadav
<
[email protected]
>
Tue, 1 Aug 2017 17:56:23 +0000
(13:56 -0400)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Wed, 9 Aug 2017 13:45:18 +0000
(09:45 -0400)
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 <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/pci/zoran/zoran_card.c
patch
|
blob
|
history
diff --git
a/drivers/media/pci/zoran/zoran_card.c
b/drivers/media/pci/zoran/zoran_card.c
index 4680f001653a6263ab7f81df47a7928ff069f540..a6b9ebd20263c37d4a2363a6be56ff78666059c1 100644
(file)
--- a/
drivers/media/pci/zoran/zoran_card.c
+++ b/
drivers/media/pci/zoran/zoran_card.c
@@
-130,7
+130,7
@@
MODULE_VERSION(ZORAN_VERSION);
.vendor = PCI_VENDOR_ID_ZORAN, .device = PCI_DEVICE_ID_ZORAN_36057, \
.subvendor = (subven), .subdevice = (subdev), .driver_data = (data) }
-static struct pci_device_id zr36067_pci_tbl[] = {
+static
const
struct pci_device_id zr36067_pci_tbl[] = {
ZR_DEVICE(PCI_VENDOR_ID_MIRO, PCI_DEVICE_ID_MIRO_DC10PLUS, DC10plus),
ZR_DEVICE(PCI_VENDOR_ID_MIRO, PCI_DEVICE_ID_MIRO_DC30PLUS, DC30plus),
ZR_DEVICE(PCI_VENDOR_ID_ELECTRONICDESIGNGMBH, PCI_DEVICE_ID_LML_33R10, LML33R10),