Re: [PATCH 1/3] USB: musb: add reset hook to platform ops

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

 



On Wed, Apr 02, 2014 at 03:21:44PM +0200, Daniel Mack wrote:
> On 04/02/2014 02:12 PM, Sergei Shtylyov wrote:
> > On 02-04-2014 15:58, Daniel Mack wrote:
> >> +static inline void musb_platform_reset(struct musb *musb)
> >> +{
> >> +	if (musb->ops->reset)
> >> +		musb->ops->reset(musb);
> >> +}
> >> +
> > 
> >     I think this patch should be merged with the patch #2. It's not good that 
> > you add a function that's not called yet.
> 
> Well, that's common practice in the kernel I'd say in order to keep the
> changes small. But it's a matter of maintainer's taste after all, so if
> Felipe wants me to, I can easily squash the two together.

don't worry, when it comes to inlines, I prefer to see them introduced
then used. There will be no warnings or errors added because of a new
inline function being added.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


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

  Powered by Linux