Skip to content

Commit

Permalink
hwmon: (asc7621) use simple i2c probe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Kitt authored and Guenter Roeck committed Sep 23, 2020
1 parent 91ed7c4 commit 7dedb79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hwmon/asc7621.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ static void asc7621_init_client(struct i2c_client *client)
}

static int
asc7621_probe(struct i2c_client *client, const struct i2c_device_id *id)
asc7621_probe(struct i2c_client *client)
{
struct asc7621_data *data;
int i, err;
Expand Down Expand Up @@ -1193,7 +1193,7 @@ static struct i2c_driver asc7621_driver = {
.driver = {
.name = "asc7621",
},
.probe = asc7621_probe,
.probe_new = asc7621_probe,
.remove = asc7621_remove,
.id_table = asc7621_id,
.detect = asc7621_detect,
Expand Down

0 comments on commit 7dedb79

Please sign in to comment.