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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221118224540.619276-449-uwe@kleine-koenig.org
This commit is contained in:
Uwe Kleine-König 2022-11-18 23:43:02 +01:00 committed by Lee Jones
parent 19301f114b
commit a5a689fa14
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ static int menf21bmc_wdt_exit_prod_mode(struct i2c_client *client)
}
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 ret;
@ -111,7 +111,7 @@ MODULE_DEVICE_TABLE(i2c, menf21bmc_id_table);
static struct i2c_driver menf21bmc_driver = {
.driver.name = "menf21bmc",
.id_table = menf21bmc_id_table,
.probe = menf21bmc_probe,
.probe_new = menf21bmc_probe,
};
module_i2c_driver(menf21bmc_driver);