mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arvind Yadav <arvind.yadav.cs@gmail.com>
To: corbet@lwn.net, mchehab@kernel.org, awalls@md.metrocast.net,
	hverkuil@xs4all.nl, serjk@netup.ru, aospan@netup.ru,
	hans.verkuil@cisco.com
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 09/18] [media] bt8xx: bttv: constify pci_device_id.
Date: Tue,  1 Aug 2017 23:26:25 +0530	[thread overview]
Message-ID: <1501610194-8231-10-git-send-email-arvind.yadav.cs@gmail.com> (raw)
In-Reply-To: <1501610194-8231-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 <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/bt8xx/bttv-driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c
index ed319f1..40110be 100644
--- a/drivers/media/pci/bt8xx/bttv-driver.c
+++ b/drivers/media/pci/bt8xx/bttv-driver.c
@@ -4388,7 +4388,7 @@ static int bttv_resume(struct pci_dev *pci_dev)
 }
 #endif
 
-static struct pci_device_id bttv_pci_tbl[] = {
+static const struct pci_device_id bttv_pci_tbl[] = {
 	{PCI_VDEVICE(BROOKTREE, PCI_DEVICE_ID_BT848), 0},
 	{PCI_VDEVICE(BROOKTREE, PCI_DEVICE_ID_BT849), 0},
 	{PCI_VDEVICE(BROOKTREE, PCI_DEVICE_ID_BT878), 0},
-- 
2.7.4

  parent reply	other threads:[~2017-08-01 18:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-01 17:56 [PATCH 00/18] constify media pci_device_id Arvind Yadav
2017-08-01 17:56 ` [PATCH 01/18] [media] marvell-ccic: constify pci_device_id Arvind Yadav
2017-08-01 17:56 ` [PATCH 02/18] [media] netup_unidvb: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 03/18] [media] cx23885: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 04/18] [media] meye: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 05/18] [media] pluto2: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 06/18] [media] dm1105: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 07/18] [media] zoran: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 08/18] [media] bt8xx: " Arvind Yadav
2017-08-01 17:56 ` Arvind Yadav [this message]
2017-08-01 17:56 ` [PATCH 10/18] [media] ivtv: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 11/18] [media] cobalt: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 12/18] [media] b2c2: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 13/18] [media] saa7164: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 14/18] [media] pt1: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 15/18] [media] mantis: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 16/18] [media] mantis: hopper_cards: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 17/18] [media] cx18: " Arvind Yadav
2017-08-01 17:56 ` [PATCH 18/18] [media] radio: " 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=1501610194-8231-10-git-send-email-arvind.yadav.cs@gmail.com \
    --to=arvind.yadav.cs@gmail.com \
    --cc=aospan@netup.ru \
    --cc=awalls@md.metrocast.net \
    --cc=corbet@lwn.net \
    --cc=hans.verkuil@cisco.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=serjk@netup.ru \
    /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®