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 18/18] [media] radio: constify pci_device_id.
Date: Tue,  1 Aug 2017 23:26:34 +0530	[thread overview]
Message-ID: <1501610194-8231-19-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/radio/radio-maxiradio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
index 8253f79..3aa5ad3 100644
--- a/drivers/media/radio/radio-maxiradio.c
+++ b/drivers/media/radio/radio-maxiradio.c
@@ -186,7 +186,7 @@ static void maxiradio_remove(struct pci_dev *pdev)
 	kfree(dev);
 }
 
-static struct pci_device_id maxiradio_pci_tbl[] = {
+static const struct pci_device_id maxiradio_pci_tbl[] = {
 	{ PCI_VENDOR_ID_GUILLEMOT, PCI_DEVICE_ID_GUILLEMOT_MAXIRADIO,
 		PCI_ANY_ID, PCI_ANY_ID, },
 	{ 0 }
-- 
2.7.4

      parent reply	other threads:[~2017-08-01 17:58 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 ` [PATCH 09/18] [media] bt8xx: bttv: " Arvind Yadav
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 ` Arvind Yadav [this message]

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-19-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®