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

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

authored by

Stephen Kitt and committed by
Guenter Roeck
7dedb79d 91ed7c40

+2 -2
+2 -2
drivers/hwmon/asc7621.c
··· 1087 1087 } 1088 1088 1089 1089 static int 1090 - asc7621_probe(struct i2c_client *client, const struct i2c_device_id *id) 1090 + asc7621_probe(struct i2c_client *client) 1091 1091 { 1092 1092 struct asc7621_data *data; 1093 1093 int i, err; ··· 1193 1193 .driver = { 1194 1194 .name = "asc7621", 1195 1195 }, 1196 - .probe = asc7621_probe, 1196 + .probe_new = asc7621_probe, 1197 1197 .remove = asc7621_remove, 1198 1198 .id_table = asc7621_id, 1199 1199 .detect = asc7621_detect,