projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dedb79
)
hwmon: (emc2103) use simple i2c probe
author
Stephen Kitt
<steve@sk2.org>
Thu, 13 Aug 2020 16:27:04 +0000
(18:27 +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/20200813162704.1517951-1-steve@sk2.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/emc2103.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/emc2103.c
b/drivers/hwmon/emc2103.c
index
924c02c
..
e4c95ca
100644
(file)
--- a/
drivers/hwmon/emc2103.c
+++ b/
drivers/hwmon/emc2103.c
@@
-551,7
+551,7
@@
static const struct attribute_group emc2103_temp4_group = {
};
static int
-emc2103_probe(struct i2c_client *client
, const struct i2c_device_id *id
)
+emc2103_probe(struct i2c_client *client)
{
struct emc2103_data *data;
struct device *hwmon_dev;
@@
-653,7
+653,7
@@
static struct i2c_driver emc2103_driver = {
.driver = {
.name = "emc2103",
},
- .probe
= emc2103_probe,
+ .probe
_new
= emc2103_probe,
.id_table = emc2103_ids,
.detect = emc2103_detect,
.address_list = normal_i2c,