Skip to content

Commit

Permalink
hwmon: (w83793) 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/20200813161845.1511261-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 7d6ed4b commit 16b237f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/hwmon/w83793.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ static void w83793_release_resources(struct kref *ref)

static u8 w83793_read_value(struct i2c_client *client, u16 reg);
static int w83793_write_value(struct i2c_client *client, u16 reg, u8 value);
static int w83793_probe(struct i2c_client *client,
const struct i2c_device_id *id);
static int w83793_probe(struct i2c_client *client);
static int w83793_detect(struct i2c_client *client,
struct i2c_board_info *info);
static int w83793_remove(struct i2c_client *client);
Expand All @@ -303,7 +302,7 @@ static struct i2c_driver w83793_driver = {
.driver = {
.name = "w83793",
},
.probe = w83793_probe,
.probe_new = w83793_probe,
.remove = w83793_remove,
.id_table = w83793_id,
.detect = w83793_detect,
Expand Down Expand Up @@ -1646,8 +1645,7 @@ static int w83793_detect(struct i2c_client *client,
return 0;
}

static int w83793_probe(struct i2c_client *client,
const struct i2c_device_id *id)
static int w83793_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
static const int watchdog_minors[] = {
Expand Down

0 comments on commit 16b237f

Please sign in to comment.