[<prev] [next>] [day] [month] [year] [list]
Message-ID: <62363da5-39c4-40f2-bfca-fed182845eb8@kadam.mountain>
Date: Mon, 25 Sep 2023 15:18:50 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Umang Jain <umang.jain@...asonboard.com>
Cc: linux-staging@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org,
linux-rpi-kernel@...ts.infradead.org, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org,
Stefan Wahren <stefan.wahren@...e.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Florian Fainelli <f.fainelli@...il.com>,
Adrien Thierry <athierry@...hat.com>,
Dan Carpenter <error27@...il.com>,
Dave Stevenson <dave.stevenson@...pberrypi.com>,
Kieran Bingham <kieran.bingham@...asonboard.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>
Subject: Re: [PATCH v11 1/5] staging: vc04_services: vchiq_arm: Add new bus
type and device type
On Sat, Sep 23, 2023 at 07:57:51PM +0530, Umang Jain wrote:
> Hi Dan,
>
> On 9/14/23 12:25 PM, Dan Carpenter wrote:
> > On Thu, Sep 14, 2023 at 01:23:50AM +0530, Umang Jain wrote:
> > > +static int vchiq_bus_type_match(struct device *dev, struct device_driver *drv)
> > > +{
> > > + if (dev->bus == &vchiq_bus_type &&
> > > + strcmp(dev_name(dev), drv->name) == 0)
> > > + return 1;
> > > +
> > > + return 0;
> > > +}
> > I was not going to comment on this, because it's unfair to nitpick a
> > v11 patch... But since you're going to have to redo it anyway, could
> > you make this function bool and change it to return true/false.
> >
> > static bool vchiq_bus_type_match(struct device *dev, struct device_driver *drv)
>
> Perhaps the return value can be true/false, but return type should always be
> 'int'
>
Oh. Sorry, I didn't look carefully.
Btw, you don't need to tip toe around telling me I'm wrong. Just say
"That won't compile, dummy." I'm a big boy, and I can admit when I make
mistakes. ;)
regards,
dan carpenter
Powered by blists - more mailing lists