mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
hwmon: (adm1177) use simple i2c probe
This driver doesn't use the id information provided by the old i2c
probe function, so it can trivially be converted to the simple
("probe_new") form.
Signed-off-by: Stephen Kitt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
1 parent
6748703856
commit
a391adfae1
1 file changed
+2
-3
@@ -196,8 +196,7 @@ static void adm1177_remove(void *data)
|
||||
regulator_disable(st->reg);
|
||||
}
|
||||
|
||||
static int adm1177_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int adm1177_probe(struct i2c_client *client)
|
||||
{
|
||||
struct device *dev = &client->dev;
|
||||
struct device *hwmon_dev;
|
||||
@@ -277,7 +276,7 @@ static struct i2c_driver adm1177_driver = {
|
||||
.name = "adm1177",
|
||||
.of_match_table = adm1177_dt_ids,
|
||||
},
|
||||
.probe = adm1177_probe,
|
||||
.probe_new = adm1177_probe,
|
||||
.id_table = adm1177_id,
|
||||
};
|
||||
module_i2c_driver(adm1177_driver);
|
||||
|
||||
Reference in new issue
Block a user