[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230824193813.GC3659959@shaak>
Date: Thu, 24 Aug 2023 15:38:13 -0400
From: Liam Beguin <liambeguin@...il.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc: Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
linux-kernel@...r.kernel.org, linux-iio@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH 2/3] iio: adc: ltc2309: switch to new .probe()
On Thu, Aug 24, 2023 at 08:01:01PM +0200, Krzysztof Kozlowski wrote:
> On 24/08/2023 18:55, Liam Beguin wrote:
> > Recent changes to the I2C subsystem removed the id parameter of the
> > probe function. Update driver to use the new prototype, and keep this as
> > an independent commit to facilitate backporting.
> >
> > Signed-off-by: Liam Beguin <liambeguin@...il.com>
> > ---
> > drivers/iio/adc/ltc2309.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/iio/adc/ltc2309.c b/drivers/iio/adc/ltc2309.c
> > index ee1fd9b82e2a..d26bbd70b0ff 100644
> > --- a/drivers/iio/adc/ltc2309.c
> > +++ b/drivers/iio/adc/ltc2309.c
> > @@ -158,8 +158,7 @@ static const struct iio_info ltc2309_info = {
> > .read_raw = ltc2309_read_raw,
> > };
> >
> > -static int ltc2309_probe(struct i2c_client *client,
> > - const struct i2c_device_id *id)
> > +static int ltc2309_probe(struct i2c_client *client)
>
> This patch does not make sense. Do not send patch (1/3) which does not
> compile and is buggy, just to immediately fix it. We do not add known
> wrong code.
Sorry about that! You're right, I missed that 1/3 doesn't build without
this change. I might've pressed send too quickly here..
> Best regards,
> Krzysztof
>
Thanks,
Liam
Powered by blists - more mailing lists