mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 02:36:21 +00:00
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>
This commit is contained in:
parent
16b237f5e5
commit
77b5b8a802
@ -315,8 +315,7 @@ struct w83791d_data {
|
|||||||
u8 vrm; /* hwmon-vid */
|
u8 vrm; /* hwmon-vid */
|
||||||
};
|
};
|
||||||
|
|
||||||
static int w83791d_probe(struct i2c_client *client,
|
static int w83791d_probe(struct i2c_client *client);
|
||||||
const struct i2c_device_id *id);
|
|
||||||
static int w83791d_detect(struct i2c_client *client,
|
static int w83791d_detect(struct i2c_client *client,
|
||||||
struct i2c_board_info *info);
|
struct i2c_board_info *info);
|
||||||
static int w83791d_remove(struct i2c_client *client);
|
static int w83791d_remove(struct i2c_client *client);
|
||||||
@ -342,7 +341,7 @@ static struct i2c_driver w83791d_driver = {
|
|||||||
.driver = {
|
.driver = {
|
||||||
.name = "w83791d",
|
.name = "w83791d",
|
||||||
},
|
},
|
||||||
.probe = w83791d_probe,
|
.probe_new = w83791d_probe,
|
||||||
.remove = w83791d_remove,
|
.remove = w83791d_remove,
|
||||||
.id_table = w83791d_id,
|
.id_table = w83791d_id,
|
||||||
.detect = w83791d_detect,
|
.detect = w83791d_detect,
|
||||||
@ -1346,8 +1345,7 @@ static int w83791d_detect(struct i2c_client *client,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int w83791d_probe(struct i2c_client *client,
|
static int w83791d_probe(struct i2c_client *client)
|
||||||
const struct i2c_device_id *id)
|
|
||||||
{
|
{
|
||||||
struct w83791d_data *data;
|
struct w83791d_data *data;
|
||||||
struct device *dev = &client->dev;
|
struct device *dev = &client->dev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user