Commit a5a689fa authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Lee Jones

mfd: menf21bmc: 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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-449-uwe@kleine-koenig.org
parent 19301f11
...@@ -49,7 +49,7 @@ static int menf21bmc_wdt_exit_prod_mode(struct i2c_client *client) ...@@ -49,7 +49,7 @@ static int menf21bmc_wdt_exit_prod_mode(struct i2c_client *client)
} }
static int static int
menf21bmc_probe(struct i2c_client *client, const struct i2c_device_id *ids) menf21bmc_probe(struct i2c_client *client)
{ {
int rev_major, rev_minor, rev_main; int rev_major, rev_minor, rev_main;
int ret; int ret;
...@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(i2c, menf21bmc_id_table); ...@@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(i2c, menf21bmc_id_table);
static struct i2c_driver menf21bmc_driver = { static struct i2c_driver menf21bmc_driver = {
.driver.name = "menf21bmc", .driver.name = "menf21bmc",
.id_table = menf21bmc_id_table, .id_table = menf21bmc_id_table,
.probe = menf21bmc_probe, .probe_new = menf21bmc_probe,
}; };
module_i2c_driver(menf21bmc_driver); module_i2c_driver(menf21bmc_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment