Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <steve@sk2.org>
Link: https://lore.kernel.org/r/20200813160958.1506536-1-steve@sk2.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Stephen Kitt and committed by
Guenter Roeck
a391adfa 67487038

+2 -3
+2 -3
drivers/hwmon/adm1177.c
··· 196 196 regulator_disable(st->reg); 197 197 } 198 198 199 - static int adm1177_probe(struct i2c_client *client, 200 - const struct i2c_device_id *id) 199 + static int adm1177_probe(struct i2c_client *client) 201 200 { 202 201 struct device *dev = &client->dev; 203 202 struct device *hwmon_dev; ··· 276 277 .name = "adm1177", 277 278 .of_match_table = adm1177_dt_ids, 278 279 }, 279 - .probe = adm1177_probe, 280 + .probe_new = adm1177_probe, 280 281 .id_table = adm1177_id, 281 282 }; 282 283 module_i2c_driver(adm1177_driver);