From: Jonathan Cameron <jic23@kernel.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: "Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Uwe Kleine-König" <uwe@kleine-koenig.org>,
"Lars-Peter Clausen" <lars@metafoo.de>,
"Michael Hennerich" <Michael.Hennerich@analog.com>,
linux-iio@vger.kernel.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org, "Wolfram Sang" <wsa@kernel.org>,
"Angel Iglesias" <ang.iglesiasg@gmail.com>,
linux-i2c@vger.kernel.org, kernel@pengutronix.de,
"Grant Likely" <grant.likely@linaro.org>,
"Lee Jones" <lee.jones@linaro.org>
Subject: Re: [PATCH 567/606] staging: iio: ad5933: Convert to i2c's .probe_new()
Date: Tue, 22 Nov 2022 18:40:33 +0000 [thread overview]
Message-ID: <20221122184033.6cae4473@jic23-huawei> (raw)
In-Reply-To: <20221122133534.zoosrjjszpgmgb64@pengutronix.de>
On Tue, 22 Nov 2022 14:35:34 +0100
Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:
> Hello Greg,
>
> On Tue, Nov 22, 2022 at 01:22:39PM +0100, Greg Kroah-Hartman wrote:
> > On Fri, Nov 18, 2022 at 11:45:01PM +0100, Uwe Kleine-König wrote:
> > > From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > >
> > > .probe_new() doesn't get the i2c_device_id * parameter, so determine
> > > that explicitly in the probe function.
> > >
> > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > > ---
> > > drivers/staging/iio/impedance-analyzer/ad5933.c | 6 +++---
> > > 1 file changed, 3 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c
> > > index f177b20f0f2d..b3152f7153fb 100644
> > > --- a/drivers/staging/iio/impedance-analyzer/ad5933.c
> > > +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c
> > > @@ -674,9 +674,9 @@ static void ad5933_clk_disable(void *data)
> > > clk_disable_unprepare(st->mclk);
> > > }
> > >
> > > -static int ad5933_probe(struct i2c_client *client,
> > > - const struct i2c_device_id *id)
> > > +static int ad5933_probe(struct i2c_client *client)
> > > {
> > > + const struct i2c_device_id *id = i2c_client_get_device_id(client);
> >
> > Breaks the build in my tree as this function is not in Linus's tree yet
> > :(
>
> As pointed out in the cover letter[1] you want to make sure that
>
> https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/client_device_id_helper-immutable
>
> is part of your tree first. So either pull that into your tree, or wait
> until this hits Linus's tree.
Greg,
I'm already carrying that tree so I'll pick these up unless you particularly want to take
the IIO staging ones with whatever else there is in staging from this series.
Jonathan
>
> Best regards
> Uwe
>
> [1] https://lore.kernel.org/linux-kernel/20221118224540.619276-1-uwe@kleine-koenig.org
> (It wasn't sent to every thread participant because that would have
> been too many.)
>
next prev parent reply other threads:[~2022-11-22 18:28 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-18 22:35 [PATCH 000/606] i2c: Complete conversion to i2c_probe_new Uwe Kleine-König
2022-11-18 22:45 ` [PATCH 566/606] staging: iio: adt7316: Convert to i2c's .probe_new() Uwe Kleine-König
2022-11-18 22:45 ` [PATCH 567/606] staging: iio: ad5933: " Uwe Kleine-König
2022-11-22 12:22 ` Greg Kroah-Hartman
2022-11-22 13:35 ` Uwe Kleine-König
2022-11-22 18:40 ` Jonathan Cameron [this message]
2022-11-18 22:45 ` [PATCH 568/606] staging: iio: ade7854: " Uwe Kleine-König
2022-11-18 22:45 ` [PATCH 569/606] staging: most: i2c: " Uwe Kleine-König
2022-11-18 22:45 ` [PATCH 570/606] staging: olpc_dcon: " Uwe Kleine-König
2022-11-19 6:50 ` [PATCH 000/606] i2c: Complete conversion to i2c_probe_new patchwork-bot+chrome-platform
2022-11-19 6:50 ` patchwork-bot+chrome-platform
2022-11-19 11:10 ` Wolfram Sang
2022-11-20 19:43 ` Sebastian Reichel
2022-11-21 9:53 ` Lee Jones
2022-11-22 18:58 ` Jonathan Cameron
2022-11-22 20:16 ` Uwe Kleine-König
2022-11-26 15:43 ` Andy Shevchenko
2022-11-23 12:11 ` (subset) " Mark Brown
2022-11-23 17:23 ` Mark Brown
2022-11-24 12:27 ` Mark Brown
2022-11-24 13:26 ` Mark Brown
2022-11-24 13:50 ` Mark Brown
2022-11-24 14:03 ` Mark Brown
2022-11-24 14:28 ` Mark Brown
2022-11-24 15:15 ` Mark Brown
2022-11-24 15:26 ` Mark Brown
2022-11-24 15:38 ` Mark Brown
2022-11-24 15:49 ` Mark Brown
2022-11-24 16:04 ` Mark Brown
2022-11-25 14:27 ` Mark Brown
2022-12-09 12:00 ` Robert Foss
2022-12-12 16:36 ` Robert Foss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221122184033.6cae4473@jic23-huawei \
--to=jic23@kernel.org \
--cc=Michael.Hennerich@analog.com \
--cc=ang.iglesiasg@gmail.com \
--cc=grant.likely@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=kernel@pengutronix.de \
--cc=lars@metafoo.de \
--cc=lee.jones@linaro.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=u.kleine-koenig@pengutronix.de \
--cc=uwe@kleine-koenig.org \
--cc=wsa@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox