From: Peter Huewe <PeterHuewe@gmx.de>
To: Kernel Janitors <kernel-janitors@vger.kernel.org>
Cc: "Digi International, Inc" <Eng.Linux@digi.com>,
Alexey Dobriyan <adobriyan@gmail.com>,
Greg Kroah-Hartman <gregkh@suse.de>, Tejun Heo <tj@kernel.org>,
Jiri Kosina <jkosina@suse.cz>, Joe Perches <joe@perches.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used)
Date: Thu, 15 Jul 2010 18:52:37 +0000 [thread overview]
Message-ID: <201007152052.38060.PeterHuewe@gmx.de> (raw)
From: Peter Huewe <peterhuewe@gmx.de>
This patch converts pci_table entries, where .subvendor=PCI_ANY_ID and
.subdevice=PCI_ANY_ID, .class=0 and .class_mask=0, to use the
PCI_VDEVICE macro, and thus improves readability.
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
drivers/char/epca.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/char/epca.c b/drivers/char/epca.c
index d9df46a..5dafcdb 100644
--- a/drivers/char/epca.c
+++ b/drivers/char/epca.c
@@ -2762,10 +2762,10 @@ err_out:
static struct pci_device_id epca_pci_tbl[] = {
- { PCI_VENDOR_DIGI, PCI_DEVICE_XR, PCI_ANY_ID, PCI_ANY_ID, 0, 0, brd_xr },
- { PCI_VENDOR_DIGI, PCI_DEVICE_XEM, PCI_ANY_ID, PCI_ANY_ID, 0, 0, brd_xem },
- { PCI_VENDOR_DIGI, PCI_DEVICE_CX, PCI_ANY_ID, PCI_ANY_ID, 0, 0, brd_cx },
- { PCI_VENDOR_DIGI, PCI_DEVICE_XRJ, PCI_ANY_ID, PCI_ANY_ID, 0, 0, brd_xrj },
+ { PCI_VDEVICE(DIGI, PCI_DEVICE_XR), brd_xr },
+ { PCI_VDEVICE(DIGI, PCI_DEVICE_XEM), brd_xem },
+ { PCI_VDEVICE(DIGI, PCI_DEVICE_CX), brd_cx },
+ { PCI_VDEVICE(DIGI, PCI_DEVICE_XRJ), brd_xrj },
{ 0, }
};
--
1.7.1
WARNING: multiple messages have this Message-ID (diff)
From: Peter Huewe <PeterHuewe@gmx.de>
To: Kernel Janitors <kernel-janitors@vger.kernel.org>
Cc: "Digi International, Inc" <Eng.Linux@digi.com>,
Alexey Dobriyan <adobriyan@gmail.com>,
"Greg Kroah-Hartman" <gregkh@suse.de>, Tejun Heo <tj@kernel.org>,
Jiri Kosina <jkosina@suse.cz>, Joe Perches <joe@perches.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used)
Date: Thu, 15 Jul 2010 20:52:37 +0200 [thread overview]
Message-ID: <201007152052.38060.PeterHuewe@gmx.de> (raw)
From: Peter Huewe <peterhuewe@gmx.de>
This patch converts pci_table entries, where .subvendor=PCI_ANY_ID and
.subdevice=PCI_ANY_ID, .class=0 and .class_mask=0, to use the
PCI_VDEVICE macro, and thus improves readability.
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
drivers/char/epca.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/char/epca.c b/drivers/char/epca.c
index d9df46a..5dafcdb 100644
--- a/drivers/char/epca.c
+++ b/drivers/char/epca.c
@@ -2762,10 +2762,10 @@ err_out:
static struct pci_device_id epca_pci_tbl[] = {
- { PCI_VENDOR_DIGI, PCI_DEVICE_XR, PCI_ANY_ID, PCI_ANY_ID, 0, 0, brd_xr },
- { PCI_VENDOR_DIGI, PCI_DEVICE_XEM, PCI_ANY_ID, PCI_ANY_ID, 0, 0, brd_xem },
- { PCI_VENDOR_DIGI, PCI_DEVICE_CX, PCI_ANY_ID, PCI_ANY_ID, 0, 0, brd_cx },
- { PCI_VENDOR_DIGI, PCI_DEVICE_XRJ, PCI_ANY_ID, PCI_ANY_ID, 0, 0, brd_xrj },
+ { PCI_VDEVICE(DIGI, PCI_DEVICE_XR), brd_xr },
+ { PCI_VDEVICE(DIGI, PCI_DEVICE_XEM), brd_xem },
+ { PCI_VDEVICE(DIGI, PCI_DEVICE_CX), brd_cx },
+ { PCI_VDEVICE(DIGI, PCI_DEVICE_XRJ), brd_xrj },
{ 0, }
};
--
1.7.1
next reply other threads:[~2010-07-15 18:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-15 18:52 Peter Huewe [this message]
2010-07-15 18:52 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Peter Huewe
2010-07-15 20:45 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE Greg KH
2010-07-15 20:45 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Greg KH
2010-07-15 21:00 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE Joe Perches
2010-07-15 21:00 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Joe Perches
2010-07-16 4:29 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE Greg KH
2010-07-16 4:29 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Greg KH
2010-07-16 4:44 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE Joe Perches
2010-07-16 4:44 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Joe Perches
2010-07-16 5:29 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE Greg KH
2010-07-16 5:29 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Greg KH
2010-07-16 5:37 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE Joe Perches
2010-07-16 5:37 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Joe Perches
2010-07-16 5:47 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE Greg KH
2010-07-16 5:47 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Greg KH
2010-07-15 21:07 ` Peter Hüwe
2010-07-15 21:07 ` Peter Hüwe
2010-07-16 4:28 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE Greg KH
2010-07-16 4:28 ` [PATCH 12/25] char: Convert pci_table entries to PCI_VDEVICE (if PCI_ANY_ID is used) Greg KH
2010-07-16 23:54 ` Peter Hüwe
2010-07-16 23:54 ` Peter Hüwe
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=201007152052.38060.PeterHuewe@gmx.de \
--to=peterhuewe@gmx.de \
--cc=Eng.Linux@digi.com \
--cc=adobriyan@gmail.com \
--cc=gregkh@suse.de \
--cc=jkosina@suse.cz \
--cc=joe@perches.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.