From: Arvind Yadav Date: Tue, 1 Aug 2017 17:56:30 +0000 (-0400) Subject: media: pt1: constify pci_device_id X-Git-Tag: v5.15~9827^2~775 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2c43ff160e144348e5a820febb6b3c13759924d;p=platform%2Fkernel%2Flinux-starfive.git media: pt1: constify pci_device_id pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index 3219d2f..b6b1a8d 100644 --- a/drivers/media/pci/pt1/pt1.c +++ b/drivers/media/pci/pt1/pt1.c @@ -1202,7 +1202,7 @@ err: } -static struct pci_device_id pt1_id_table[] = { +static const struct pci_device_id pt1_id_table[] = { { PCI_DEVICE(0x10ee, 0x211a) }, { PCI_DEVICE(0x10ee, 0x222a) }, { },