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

hwmon: (adm1029) 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>
Acked-by: Corentin LABBE <clabbe.montjoie@gmail.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Link: https://lore.kernel.org/r/20200813161129.1507599-1-steve@sk2.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Stephen Kitt and committed by
Guenter Roeck
7d6ed4ba a391adfa

+2 -3
+2 -3
drivers/hwmon/adm1029.c
··· 352 352 return 1; 353 353 } 354 354 355 - static int adm1029_probe(struct i2c_client *client, 356 - const struct i2c_device_id *id) 355 + static int adm1029_probe(struct i2c_client *client) 357 356 { 358 357 struct device *dev = &client->dev; 359 358 struct adm1029_data *data; ··· 389 390 .driver = { 390 391 .name = "adm1029", 391 392 }, 392 - .probe = adm1029_probe, 393 + .probe_new = adm1029_probe, 393 394 .id_table = adm1029_id, 394 395 .detect = adm1029_detect, 395 396 .address_list = normal_i2c,