From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Linux I2C <linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Cc: "Márton Németh" <nm127-Y8qEzhMunLyT9ig0jae3mg@public.gmane.org>
Subject: [PATCH] i2c/scx200_acb: Make PCI device ids constant
Date: Wed, 3 Mar 2010 10:46:42 +0100 [thread overview]
Message-ID: <20100303104642.39999e1f@hyperion.delvare> (raw)
Make PCI device ids constant as we just did for many other i2c bus
drivers already.
Signed-off-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: Márton Németh <nm127-Y8qEzhMunLyT9ig0jae3mg@public.gmane.org>
---
drivers/i2c/busses/scx200_acb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.34-rc0.orig/drivers/i2c/busses/scx200_acb.c 2010-03-03 10:34:33.000000000 +0100
+++ linux-2.6.34-rc0/drivers/i2c/busses/scx200_acb.c 2010-03-03 10:36:27.000000000 +0100
@@ -551,7 +551,7 @@ static int __init scx200_create_isa(cons
* the name and the BAR where the I/O address resource is located. ISA
* devices are flagged with a bar value of -1 */
-static struct pci_device_id scx200_pci[] = {
+static const struct pci_device_id scx200_pci[] __initconst = {
{ PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_SCx200_BRIDGE),
.driver_data = 0 },
{ PCI_DEVICE(PCI_VENDOR_ID_NS, PCI_DEVICE_ID_NS_SC1100_BRIDGE),
--
Jean Delvare
reply other threads:[~2010-03-03 9:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20100303104642.39999e1f@hyperion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=nm127-Y8qEzhMunLyT9ig0jae3mg@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).