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:
parent
19301f114b
commit
a5a689fa14
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue