summaryrefslogtreecommitdiff
path: root/drivers/hwmon/asc7621.c
diff options
context:
space:
mode:
authorStephen Kitt <steve@sk2.org>2020-08-13 19:25:44 +0300
committerGuenter Roeck <linux@roeck-us.net>2020-09-23 19:42:40 +0300
commit7dedb79d295b4b61144be72dfa4f48b0d3bf80f0 (patch)
tree60102cb290ec5050b748e3bdd9404876c4a9187c /drivers/hwmon/asc7621.c
parent91ed7c40f339511a33c42fcf4e7f9a358293d9b5 (diff)
downloadlinux-7dedb79d295b4b61144be72dfa4f48b0d3bf80f0.tar.xz
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>
Diffstat (limited to 'drivers/hwmon/asc7621.c')
-rw-r--r--drivers/hwmon/asc7621.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/asc7621.c b/drivers/hwmon/asc7621.c
index 9e14e2829ee9..600ffc7e1900 100644
--- a/drivers/hwmon/asc7621.c
+++ b/drivers/hwmon/asc7621.c
@@ -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;
@@ -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,