Skip to content

Commit 2f2afad

Browse files
Uwe Kleine-Königwsakernel
authored andcommitted
i2c: mux: Convert all drivers to new .probe() callback
Now that .probe() was changed not to get the id parameter, drivers can be converted back to that with the eventual goal to drop .probe_new(). Implement that for the i2c mux drivers. Acked-by: Guenter Roeck <[email protected]> Acked-by: Peter Rosin <[email protected]> Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 03c835f commit 2f2afad

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

drivers/i2c/muxes/i2c-mux-ltc4306.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ static struct i2c_driver ltc4306_driver = {
306306
.name = "ltc4306",
307307
.of_match_table = of_match_ptr(ltc4306_of_match),
308308
},
309-
.probe_new = ltc4306_probe,
309+
.probe = ltc4306_probe,
310310
.remove = ltc4306_remove,
311311
.id_table = ltc4306_id,
312312
};

drivers/i2c/muxes/i2c-mux-pca9541.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static struct i2c_driver pca9541_driver = {
336336
.name = "pca9541",
337337
.of_match_table = of_match_ptr(pca9541_of_match),
338338
},
339-
.probe_new = pca9541_probe,
339+
.probe = pca9541_probe,
340340
.remove = pca9541_remove,
341341
.id_table = pca9541_id,
342342
};

drivers/i2c/muxes/i2c-mux-pca954x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ static struct i2c_driver pca954x_driver = {
554554
.pm = &pca954x_pm,
555555
.of_match_table = pca954x_of_match,
556556
},
557-
.probe_new = pca954x_probe,
557+
.probe = pca954x_probe,
558558
.remove = pca954x_remove,
559559
.id_table = pca954x_id,
560560
};

0 commit comments

Comments
 (0)