Skip to content

Commit 5eb1e6e

Browse files
Uwe Kleine-Königwsakernel
authored andcommitted
i2c: Drop legacy callback .probe_new()
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> Signed-off-by: Wolfram Sang <wsa@kernel.org>
1 parent 3a7d263 commit 5eb1e6e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

include/linux/i2c.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ enum i2c_driver_flags {
237237
* struct i2c_driver - represent an I2C device driver
238238
* @class: What kind of i2c device we instantiate (for detect)
239239
* @probe: Callback for device binding
240-
* @probe_new: Transitional callback for device binding - do not use
241240
* @remove: Callback for device unbinding
242241
* @shutdown: Callback for device shutdown
243242
* @alert: Alert callback, for example for the SMBus alert protocol
@@ -272,16 +271,8 @@ enum i2c_driver_flags {
272271
struct i2c_driver {
273272
unsigned int class;
274273

275-
union {
276274
/* Standard driver model interfaces */
277-
int (*probe)(struct i2c_client *client);
278-
/*
279-
* Legacy callback that was part of a conversion of .probe().
280-
* Today it has the same semantic as .probe(). Don't use for new
281-
* code.
282-
*/
283-
int (*probe_new)(struct i2c_client *client);
284-
};
275+
int (*probe)(struct i2c_client *client);
285276
void (*remove)(struct i2c_client *client);
286277

287278

0 commit comments

Comments
 (0)