From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Luca Ceresoli <luca.ceresoli@bootlin.com>
Cc: Wolfram Sang <wsa@kernel.org>, Lee Jones <lee.jones@linaro.org>,
linux-i2c@vger.kernel.org, kernel@pengutronix.de,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 7/9] i2c: Switch .probe() to not take an id parameter
Date: Fri, 24 Feb 2023 19:03:46 +0100 [thread overview]
Message-ID: <20230224180346.dbbjcetbjrmjt4fs@pengutronix.de> (raw)
In-Reply-To: <20230224170218.22c0af0c@booty>
[-- Attachment #1: Type: text/plain, Size: 1776 bytes --]
Hello Luca,
On Fri, Feb 24, 2023 at 05:02:18PM +0100, Luca Ceresoli wrote:
> On Fri, 24 Feb 2023 13:05:58 +0100
> Uwe Kleine-König <u.kleine-koenig@pengutronix.de> wrote:
> > [...]
> > diff --git a/include/linux/i2c.h b/include/linux/i2c.h
> > index d84e0e99f084..c3e022d53182 100644
> > --- a/include/linux/i2c.h
> > +++ b/include/linux/i2c.h
> > @@ -272,14 +272,18 @@ enum i2c_driver_flags {
> > struct i2c_driver {
> > unsigned int class;
> >
> > + union {
> > /* Standard driver model interfaces */
> > - int (*probe)(struct i2c_client *client, const struct i2c_device_id *id);
> > + int (*probe)(struct i2c_client *client);
> > + /*
> > + * Legacy callback that was part of a conversion of .probe().
> > + * Today it has the same semantic as .probe(). Don't use for new
> > + * code.
> > + */
> > + int (*probe_new)(struct i2c_client *client);
> > + };
> > void (*remove)(struct i2c_client *client);
> >
> > - /* New driver model interface to aid the seamless removal of the
> > - * current probe()'s, more commonly unused than used second parameter.
> > - */
> > - int (*probe_new)(struct i2c_client *client);
>
> The kerneldoc for this struct should also be updated:
>
> - * @probe: Callback for device binding - soon to be deprecated
> - * @probe_new: New callback for device binding
> + * @probe: Callback for device binding
> + * @probe_new: Transitional callback for device binding - do not use
Indeed. I will send an updated patch series near the end of the merge
window, with your suggested change squashed in.
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2023-02-24 18:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-24 12:05 [PATCH 0/9] i2c: Switch .probe() to not take an id parameter Uwe Kleine-König
2023-02-24 12:05 ` [PATCH 7/9] " Uwe Kleine-König
2023-02-24 16:02 ` Luca Ceresoli
2023-02-24 18:03 ` Uwe Kleine-König [this message]
2023-02-24 12:05 ` [PATCH 8/9] i2c: mux: Convert all drivers to new .probe() callback Uwe Kleine-König
2023-02-24 15:23 ` Guenter Roeck
2023-02-24 15:51 ` Peter Rosin
2023-02-24 12:06 ` [PATCH 9/9] i2c: Convert " Uwe Kleine-König
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=20230224180346.dbbjcetbjrmjt4fs@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=kernel@pengutronix.de \
--cc=lee.jones@linaro.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--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