[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.02.1305202208460.3400@fry.nucleusys.com>
Date: Mon, 20 May 2013 22:16:33 +0300 (EEST)
From: Petko Manolov <petkan@...leusys.com>
To: Ben Hutchings <bhutchings@...arflare.com>
cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/5] drivers: net: usb: rtl8150: making the code a bit
better looking
On Mon, 20 May 2013, Ben Hutchings wrote:
> [...]
> > @@ -771,12 +770,12 @@ static void rtl8150_disconnect(struct usb_interface *intf)
> > }
> >
> > static struct usb_driver rtl8150_driver = {
> > - .name = driver_name,
> > - .probe = rtl8150_probe,
> > - .disconnect = rtl8150_disconnect,
> > - .id_table = rtl8150_table,
> > - .suspend = rtl8150_suspend,
> > - .resume = rtl8150_resume,
> > + .name = driver_name,
> > + .probe = rtl8150_probe,
> > + .disconnect = rtl8150_disconnect,
> > + .id_table = rtl8150_table,
> > + .suspend = rtl8150_suspend,
> > + .resume = rtl8150_resume,
> > .disable_hub_initiated_lpm = 1,
> > };
>
> These looked better before. Lining up initialisers in a structure
> definition is good style.
It is. This is what i usually do. However, scripts/Lindent is messed up
in (not only) this regard. IMHO it should not be used as it is.
I thought using what is recommended (at least in the documentation) makes
me a good citizen even though i don't like the end result much.
Again, the above is true in case i've not misunderstood something,
somewhere.
Petko
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists