linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ohci-pci: use USB_DT_*
@ 2015-10-10 21:43 Sergei Shtylyov
  2015-10-12 17:04 ` Sergei Shtylyov
  0 siblings, 1 reply; 2+ messages in thread
From: Sergei Shtylyov @ 2015-10-10 21:43 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] 2+ messages in thread

* Re: [PATCH] ohci-pci: use USB_DT_*
  2015-10-10 21:43 [PATCH] ohci-pci: use USB_DT_* Sergei Shtylyov
@ 2015-10-12 17:04 ` Sergei Shtylyov
  0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2015-10-12 17:04 UTC (permalink / raw)
  To: gregkh, linux-usb, stern; +Cc: linux-kernel

Hello.

On 10/11/2015 12:43 AM, Sergei Shtylyov wrote:

> Toshiba  Portege 4000 quirk entry can be written shorter using the
> PCI_DEVICE_SUB() macro.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

    Oops, wrong subject. I'll resend. :-<

MBR, Sergei


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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-10 21:43 [PATCH] ohci-pci: use USB_DT_* Sergei Shtylyov
2015-10-12 17:04 ` Sergei Shtylyov

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).