From: Lee Jones <lee@kernel.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Wolfram Sang <wsa@kernel.org>,
linux-i2c@vger.kernel.org, kernel@pengutronix.de,
Javier Martinez Canillas <javierm@redhat.com>,
Jean Delvare <jdelvare@suse.de>
Subject: Re: [PATCH 2/2] i2c: Drop legacy callback .probe_new()
Date: Thu, 14 Sep 2023 10:45:17 +0100 [thread overview]
Message-ID: <20230914094517.GK13143@google.com> (raw)
In-Reply-To: <20230905194253.256054-3-u.kleine-koenig@pengutronix.de>
On Tue, 05 Sep 2023, Uwe Kleine-König wrote:
> Now that all drivers are converted to the (new) .probe() callback, the
> temporary .probe_new() can go away. \o/
>
> Link: https://lore.kernel.org/linux-i2c/20230626094548.559542-1-u.kleine-koenig@pengutronix.de
> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
> Reviewed-by: Jean Delvare <jdelvare@suse.de>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> include/linux/i2c.h | 11 +----------
> 1 file changed, 1 insertion(+), 10 deletions(-)
>
> diff --git a/include/linux/i2c.h b/include/linux/i2c.h
> index 3430cc2b05a6..0dae9db27538 100644
> --- a/include/linux/i2c.h
> +++ b/include/linux/i2c.h
> @@ -237,7 +237,6 @@ enum i2c_driver_flags {
> * struct i2c_driver - represent an I2C device driver
> * @class: What kind of i2c device we instantiate (for detect)
> * @probe: Callback for device binding
> - * @probe_new: Transitional callback for device binding - do not use
> * @remove: Callback for device unbinding
> * @shutdown: Callback for device shutdown
> * @alert: Alert callback, for example for the SMBus alert protocol
> @@ -272,16 +271,8 @@ enum i2c_driver_flags {
> struct i2c_driver {
> unsigned int class;
>
> - union {
> /* Standard driver model interfaces */
> - 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);
> - };
> + int (*probe)(struct i2c_client *client);
> void (*remove)(struct i2c_client *client);
*party smiley*
Good going Uwe!
--
Lee Jones [李琼斯]
prev parent reply other threads:[~2023-09-14 9:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-05 19:42 [PATCH 0/2] i2c: Finalize the .probe_new() quest Uwe Kleine-König
2023-09-05 19:42 ` [PATCH 1/2] w1: ds2482: Switch back to use struct i2c_driver's .probe() Uwe Kleine-König
2023-09-13 8:50 ` Wolfram Sang
2023-09-05 19:42 ` [PATCH 2/2] i2c: Drop legacy callback .probe_new() Uwe Kleine-König
2023-09-13 8:50 ` Wolfram Sang
2023-09-20 6:54 ` Uwe Kleine-König
2023-09-20 9:04 ` Wolfram Sang
2023-09-20 9:43 ` Uwe Kleine-König
2023-09-20 9:47 ` Wolfram Sang
2023-09-14 9:45 ` Lee Jones [this message]
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=20230914094517.GK13143@google.com \
--to=lee@kernel.org \
--cc=javierm@redhat.com \
--cc=jdelvare@suse.de \
--cc=kernel@pengutronix.de \
--cc=linux-i2c@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.