mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
mfd: Switch two more drivers back to use struct i2c_driver::probe
struct i2c_driver::probe_new is about to go away. Switch the driver to use the probe callback with the same prototype. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230626091941.557733-1-u.kleine-koenig@pengutronix.de Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
7c8cb341fd
commit
a6b6790c02
@ -214,7 +214,7 @@ static struct i2c_driver max77541_driver = {
|
|||||||
.name = "max77541",
|
.name = "max77541",
|
||||||
.of_match_table = max77541_of_id,
|
.of_match_table = max77541_of_id,
|
||||||
},
|
},
|
||||||
.probe_new = max77541_probe,
|
.probe = max77541_probe,
|
||||||
.id_table = max77541_id,
|
.id_table = max77541_id,
|
||||||
};
|
};
|
||||||
module_i2c_driver(max77541_driver);
|
module_i2c_driver(max77541_driver);
|
||||||
|
@ -235,7 +235,7 @@ static struct i2c_driver tps6594_i2c_driver = {
|
|||||||
.name = "tps6594",
|
.name = "tps6594",
|
||||||
.of_match_table = tps6594_i2c_of_match_table,
|
.of_match_table = tps6594_i2c_of_match_table,
|
||||||
},
|
},
|
||||||
.probe_new = tps6594_i2c_probe,
|
.probe = tps6594_i2c_probe,
|
||||||
};
|
};
|
||||||
module_i2c_driver(tps6594_i2c_driver);
|
module_i2c_driver(tps6594_i2c_driver);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user