Re: [PATCH 06/35] USB: host: use dev_get_platdata()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, July 30, 2013 5:08 PM, Felipe Balbi wrote:
> On Tue, Jul 30, 2013 at 05:00:18PM +0900, Jingoo Han wrote:
> > diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c
> > index 8747fa6..d42ec85 100644
> > --- a/drivers/usb/host/ohci-omap.c
> > +++ b/drivers/usb/host/ohci-omap.c
> > @@ -191,7 +191,8 @@ static void start_hnp(struct ohci_hcd *ohci)
> >  static int ohci_omap_init(struct usb_hcd *hcd)
> >  {
> >  	struct ohci_hcd		*ohci = hcd_to_ohci(hcd);
> > -	struct omap_usb_config	*config = hcd->self.controller->platform_data;
> > +	struct omap_usb_config	*config =
> > +				dev_get_platdata(hcd->self.controller);
> 
> no need to break the line here.

Hi Felipe Balbi,

I did it in order to remove the following checkpatch warning. :(

WARNING: line over 80 characters
#194: FILE: usb/host/ohci-omap.c:194:
+       struct omap_usb_config  *config = dev_get_platdata(hcd->self.controller);

Do you have any idea? :)
Thank you.

Best regards,
Jingoo Han



--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux