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

hwmon: (lm73) 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/20200813162300.1514695-1-steve@sk2.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

authored by

Stephen Kitt and committed by
Guenter Roeck
91ed7c40 77b5b8a8

+2 -2
+2 -2
drivers/hwmon/lm73.c
··· 190 190 /* device probe and removal */ 191 191 192 192 static int 193 - lm73_probe(struct i2c_client *client, const struct i2c_device_id *id) 193 + lm73_probe(struct i2c_client *client) 194 194 { 195 195 struct device *dev = &client->dev; 196 196 struct device *hwmon_dev; ··· 277 277 .name = "lm73", 278 278 .of_match_table = lm73_of_match, 279 279 }, 280 - .probe = lm73_probe, 280 + .probe_new = lm73_probe, 281 281 .id_table = lm73_ids, 282 282 .detect = lm73_detect, 283 283 .address_list = normal_i2c,