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

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

authored by

Stephen Kitt and committed by
Guenter Roeck
77b5b8a8 16b237f5

+3 -5
+3 -5
drivers/hwmon/w83791d.c
··· 315 315 u8 vrm; /* hwmon-vid */ 316 316 }; 317 317 318 - static int w83791d_probe(struct i2c_client *client, 319 - const struct i2c_device_id *id); 318 + static int w83791d_probe(struct i2c_client *client); 320 319 static int w83791d_detect(struct i2c_client *client, 321 320 struct i2c_board_info *info); 322 321 static int w83791d_remove(struct i2c_client *client); ··· 341 342 .driver = { 342 343 .name = "w83791d", 343 344 }, 344 - .probe = w83791d_probe, 345 + .probe_new = w83791d_probe, 345 346 .remove = w83791d_remove, 346 347 .id_table = w83791d_id, 347 348 .detect = w83791d_detect, ··· 1345 1346 return 0; 1346 1347 } 1347 1348 1348 - static int w83791d_probe(struct i2c_client *client, 1349 - const struct i2c_device_id *id) 1349 + static int w83791d_probe(struct i2c_client *client) 1350 1350 { 1351 1351 struct w83791d_data *data; 1352 1352 struct device *dev = &client->dev;