projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bf5dd8
)
hwmon: (ltc2947) use simple i2c probe
author
Stephen Kitt
<steve@sk2.org>
Thu, 13 Aug 2020 16:28:51 +0000
(18:28 +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/20200813162851.1519546-1-steve@sk2.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ltc2947-i2c.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/ltc2947-i2c.c
b/drivers/hwmon/ltc2947-i2c.c
index cf6074b110ae2b834eafc1388e9229e157589beb..ad0dfd3efbf89c51405169be8f9de62478c20fec 100644
(file)
--- a/
drivers/hwmon/ltc2947-i2c.c
+++ b/
drivers/hwmon/ltc2947-i2c.c
@@
-15,8
+15,7
@@
static const struct regmap_config ltc2947_regmap_config = {
.val_bits = 8,
};
-static int ltc2947_probe(struct i2c_client *i2c,
- const struct i2c_device_id *id)
+static int ltc2947_probe(struct i2c_client *i2c)
{
struct regmap *map;
@@
-39,7
+38,7
@@
static struct i2c_driver ltc2947_driver = {
.of_match_table = ltc2947_of_match,
.pm = <c2947_pm_ops,
},
- .probe = ltc2947_probe,
+ .probe
_new
= ltc2947_probe,
.id_table = ltc2947_id,
};
module_i2c_driver(ltc2947_driver);