Skip to content

Commit 99c4ec2

Browse files
peda-rwsakernel
authored andcommitted
i2c: mux: pca9541: switch to using .probe_new
Use the new probe style for i2c drivers. Signed-off-by: Peter Rosin <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 73e9841 commit 99c4ec2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ static int pca9541_release_chan(struct i2c_mux_core *muxc, u32 chan)
283283
/*
284284
* I2C init/probing/exit functions
285285
*/
286-
static int pca9541_probe(struct i2c_client *client,
287-
const struct i2c_device_id *id)
286+
static int pca9541_probe(struct i2c_client *client)
288287
{
289288
struct i2c_adapter *adap = client->adapter;
290289
struct i2c_mux_core *muxc;
@@ -337,7 +336,7 @@ static struct i2c_driver pca9541_driver = {
337336
.name = "pca9541",
338337
.of_match_table = of_match_ptr(pca9541_of_match),
339338
},
340-
.probe = pca9541_probe,
339+
.probe_new = pca9541_probe,
341340
.remove = pca9541_remove,
342341
.id_table = pca9541_id,
343342
};

0 commit comments

Comments
 (0)