projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77b5b8a
)
hwmon: (lm73) use simple i2c probe
author
Stephen Kitt
<steve@sk2.org>
Thu, 13 Aug 2020 16:23:00 +0000
(18:23 +0200)
committer
Guenter Roeck
<linux@roeck-us.net>
Wed, 23 Sep 2020 16:42:40 +0000
(09:42 -0700)
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/20200813162300.1514695-1-steve@sk2.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm73.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/lm73.c
b/drivers/hwmon/lm73.c
index
733c48b
..
beb0d61
100644
(file)
--- a/
drivers/hwmon/lm73.c
+++ b/
drivers/hwmon/lm73.c
@@
-190,7
+190,7
@@
ATTRIBUTE_GROUPS(lm73);
/* device probe and removal */
static int
-lm73_probe(struct i2c_client *client
, const struct i2c_device_id *id
)
+lm73_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
struct device *hwmon_dev;
@@
-277,7
+277,7
@@
static struct i2c_driver lm73_driver = {
.name = "lm73",
.of_match_table = lm73_of_match,
},
- .probe
= lm73_probe,
+ .probe
_new
= lm73_probe,
.id_table = lm73_ids,
.detect = lm73_detect,
.address_list = normal_i2c,