From: Arvind Yadav <arvind.yadav.cs@gmail.com>
To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hverkuil@xs4all.nl
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 5/9] [media] ttpci: budget-av: constify pci_device_id.
Date: Wed, 2 Aug 2017 22:44:53 +0530 [thread overview]
Message-ID: <1501694097-16207-6-git-send-email-arvind.yadav.cs@gmail.com> (raw)
In-Reply-To: <1501694097-16207-1-git-send-email-arvind.yadav.cs@gmail.com>
pci_device_id are not supposed to change at runtime. All functions
working with pci_device_id provided by <media/drv-intf/saa7146.h>
and <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>
---
drivers/media/pci/ttpci/budget-av.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/pci/ttpci/budget-av.c b/drivers/media/pci/ttpci/budget-av.c
index dc7be8f..ac83fff 100644
--- a/drivers/media/pci/ttpci/budget-av.c
+++ b/drivers/media/pci/ttpci/budget-av.c
@@ -1567,7 +1567,7 @@ MAKE_BUDGET_INFO(cin1200c, "Terratec Cinergy 1200 DVB-C", BUDGET_CIN1200C);
MAKE_BUDGET_INFO(cin1200cmk3, "Terratec Cinergy 1200 DVB-C MK3", BUDGET_CIN1200C_MK3);
MAKE_BUDGET_INFO(cin1200t, "Terratec Cinergy 1200 DVB-T", BUDGET_CIN1200T);
-static struct pci_device_id pci_tbl[] = {
+static const struct pci_device_id pci_tbl[] = {
MAKE_EXTENSION_PCI(knc1s, 0x1131, 0x4f56),
MAKE_EXTENSION_PCI(knc1s, 0x1131, 0x0010),
MAKE_EXTENSION_PCI(knc1s, 0x1894, 0x0010),
--
2.7.4
next prev parent reply other threads:[~2017-08-02 17:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-02 17:14 [PATCH 0/9] constify media pci_device_id/pci_tbl Arvind Yadav
2017-08-02 17:14 ` [PATCH 1/9] [media] drv-intf: saa7146: constify pci_device_id Arvind Yadav
2017-08-02 17:14 ` [PATCH 2/9] [media] ttpci: budget: " Arvind Yadav
2017-08-02 17:14 ` [PATCH 3/9] [media] ttpci: budget-patch: " Arvind Yadav
2017-08-02 17:14 ` [PATCH 4/9] [media] ttpci: budget-ci: " Arvind Yadav
2017-08-02 17:14 ` Arvind Yadav [this message]
2017-08-02 17:14 ` [PATCH 6/9] [media] ttpci: av7110: " Arvind Yadav
2017-08-02 17:14 ` [PATCH 7/9] [media] saa7146: mxb: " Arvind Yadav
2017-08-02 17:14 ` [PATCH 8/9] [media] saa7146: hexium_orion: " Arvind Yadav
2017-08-02 17:14 ` [PATCH 9/9] [media] saa7146: hexium_gemini: " Arvind Yadav
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1501694097-16207-6-git-send-email-arvind.yadav.cs@gmail.com \
--to=arvind.yadav.cs@gmail.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®