Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1701296
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Arvind Yadav <arvind.yadav.cs@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 09/18] [media] bt8xx: bttv: constify pci_device_id. |
| Date | Tue, 01 Aug 2017 20:10:01 +0200 |
| Message-ID | <u9JMd-7ne-7@gated-at.bofh.it> (permalink) |
| References | <u9JCx-74V-3@gated-at.bofh.it> |
| X-Original-To | corbet@lwn.net, mchehab@kernel.org, awalls@md.metrocast.net, hverkuil@xs4all.nl, serjk@netup.ru, aospan@netup.ru, hans.verkuil@cisco.com |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eQSyJTRz52T/d++A3rAU7Molp2htSvnggiVeEjsibMM=; b=bhXCSy1JX/5GYtsV4GHzNMn4ujjxVBlF6NU1PxSkFvar4rGb++7YimbFz/pVv8WxHr 9m6KGHqqOzvNoqdQNmWs7bNylbFTmARsrE86zhRrDwceUdcRLGpPWSWJjuizOLXilRXF +DQ+l2C1F6SKL1t/nC3XBr+luJFebYOGY1sxzMpu4NQ3iPZeg81vX6sXrL1R0rtDeFJY nXTaNmrvGKn7NGlhCR141AKlgp0WjhBq4fndEheza+yzw+sUMXK3KggW7GRRC7xhqStV opso9opOBRfktlGxRGVh+h3zh1PRjGvy6DmphvrN9JgG+Pe2KyBJE7tICjNyxGSLPcQe clvw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eQSyJTRz52T/d++A3rAU7Molp2htSvnggiVeEjsibMM=; b=strvyJ2gMMm9Ud4de0A+9PMrhO0/FWpZApQ30GKUtA5I7vgqmxEz/qItgj3a8SV0xT 40K8Up2oimOYVskBwdRBvX7EIROK2pZkwnJSdM1xNOeX8pAN4SfaN1f1OgWmat0DorEh +0RJ7zlj5qVzbSM9oOENIryIPwwhhrwjythBGsNzC59miwOE3616GxMQqW/qPQc9cRKu gMevnEUVHZfKy2fRY/dFu6nk59GB44GFFOhl8cnO3sSd5iNgdcGlzAKNWMHbRKLUSTcR SKj7t48nYf2jW2gEEs5QcDC0kCCEpgcym4wTDpG5o6vrxmcuvYqSDmTEjXcIApCcNEI9 eIaQ== |
| X-Gm-Message-State | AIVw113BpgLAN1ce5c81KwXt7qYXjLsktOuaYo0yhBFUQprAgD99A3CD oxwSOqzCmlCXrA== |
| X-Received | by 10.84.168.5 with SMTP id e5mr20591604plb.468.1501610266395; Tue, 01 Aug 2017 10:57:46 -0700 (PDT) |
| X-Mailer | git-send-email 2.7.4 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 24 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-media@vger.kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Tue, 1 Aug 2017 23:26:25 +0530 |
| X-Original-Message-ID | <1501610194-8231-10-git-send-email-arvind.yadav.cs@gmail.com> |
| X-Original-References | <1501610194-8231-1-git-send-email-arvind.yadav.cs@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1701296 |
Show key headers only | View raw
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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/18] constify media pci_device_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 15/18] [media] mantis: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 03/18] [media] cx23885: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 06/18] [media] dm1105: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 14/18] [media] pt1: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 04/18] [media] meye: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 16/18] [media] mantis: hopper_cards: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 13/18] [media] saa7164: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 18/18] [media] radio: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:00 +0200 [PATCH 09/18] [media] bt8xx: bttv: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:10 +0200 [PATCH 05/18] [media] pluto2: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:10 +0200 [PATCH 11/18] [media] cobalt: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:10 +0200 [PATCH 12/18] [media] b2c2: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:10 +0200 [PATCH 07/18] [media] zoran: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:10 +0200 [PATCH 02/18] [media] netup_unidvb: constify pci_device_id. Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-01 20:10 +0200
csiph-web