diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-11-22 20:54:56 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-23 12:50:05 -0800 |
commit | c479babce5b1f7b6e6ec172bdca075534343be55 (patch) | |
tree | 06f0c1198487e32ed7dafbf2a8a284aa5aabb3d6 /drivers/net/dsa/lan9303_i2c.c | |
parent | e80bd08fd75a644e2337fb535c1afdb6417357ff (diff) |
net: dsa: lan9303: Convert to i2c's .probe_new()
The probe function doesn't make use of the i2c_device_id * parameter so it
can be trivially converted.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/dsa/lan9303_i2c.c')
-rw-r--r-- | drivers/net/dsa/lan9303_i2c.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/dsa/lan9303_i2c.c b/drivers/net/dsa/lan9303_i2c.c index 7d746cd9ca1b..1cb41c36bd47 100644 --- a/drivers/net/dsa/lan9303_i2c.c +++ b/drivers/net/dsa/lan9303_i2c.c @@ -29,8 +29,7 @@ static const struct regmap_config lan9303_i2c_regmap_config = { .cache_type = REGCACHE_NONE, }; -static int lan9303_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int lan9303_i2c_probe(struct i2c_client *client) { struct lan9303_i2c *sw_dev; int ret; @@ -106,7 +105,7 @@ static struct i2c_driver lan9303_i2c_driver = { .name = "LAN9303_I2C", .of_match_table = of_match_ptr(lan9303_i2c_of_match), }, - .probe = lan9303_i2c_probe, + .probe_new = lan9303_i2c_probe, .remove = lan9303_i2c_remove, .shutdown = lan9303_i2c_shutdown, .id_table = lan9303_i2c_id, |