All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ohci-pci: use PCI_DEVICE_SUB()
@ 2015-10-12 17:31 Sergei Shtylyov
  2015-10-17  6:39 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2015-10-12 17:31 UTC (permalink / raw)
  To: gregkh, linux-usb, stern; +Cc: linux-kernel

Toshiba  Portege 4000 quirk entry can be written shorter using the
PCI_DEVICE_SUB() macro.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

---
The patch is against the 'usb-next' branch of Greg KH's 'usb.git' repo.

 drivers/usb/host/ohci-pci.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Index: usb/drivers/usb/host/ohci-pci.c
===================================================================
--- usb.orig/drivers/usb/host/ohci-pci.c
+++ usb/drivers/usb/host/ohci-pci.c
@@ -192,10 +192,8 @@ static const struct pci_device_id ohci_p
 	},
 	{
 		/* Toshiba portege 4000 */
-		.vendor		= PCI_VENDOR_ID_AL,
-		.device		= 0x5237,
-		.subvendor	= PCI_VENDOR_ID_TOSHIBA,
-		.subdevice	= 0x0004,
+		PCI_DEVICE_SUB(PCI_VENDOR_ID_AL, 0x5237,
+			       PCI_VENDOR_ID_TOSHIBA, 0x0004),
 		.driver_data	= (unsigned long) broken_suspend,
 	},
 	{

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-17 12:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12 17:31 [PATCH] ohci-pci: use PCI_DEVICE_SUB() Sergei Shtylyov
2015-10-17  6:39 ` Greg KH
2015-10-17 12:17   ` Sergei Shtylyov

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.