ad7414 missing id table
PATCH 1/1 ad7414 missing id table
The ad7414 driver is missing an id table.
---
Index: drivers/hwmon/ad7414.c
=================================--- drivers/hwmon/ad7414.c (revision 12577)
+++ drivers/hwmon/ad7414.c (working copy)
@@ -225,12 +225,18 @@
return 0;
}
+static const struct i2c_device_id ad7414_id[] = {
+ { "ad7414", 0 },
+ {}
+};
+
static struct i2c_driver ad7414_driver = {
.driver = {
.name = "ad7414",
},
.probe = ad7414_probe,
.remove = __devexit_p(ad7414_remove),
+ .id_table = ad7414_id,
};
static int __init ad7414_init(void)
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 16 lines · Sean MacLennan
The ad7414 driver is missing an id table.
Signed-off-by Sean MacLennan <[email protected]>---
Index:drivers/hwmon/ad7414.c
=================================> ---drivers/hwmon/ad7414.c(revision 12577)
+++drivers/hwmon/ad7414.c(working copy)(quoted diff) +5
-0@@ -225,12 +225,18 @@ return 0; } +static const struct i2c_device_id ad7414_id[] = { + { "ad7414", 0 }, + {} +}; +
Review line 242
Quoted 10 lines
(quoted diff) +1
-0static struct i2c_driver ad7414_driver = { .driver = { .name = "ad7414", }, .probe = ad7414_probe, .remove = __devexit_p(ad7414_remove), + .id_table = ad7414_id, }; static int __init ad7414_init(void)
(I have no idea what tree this patch is against though... there's no ad7414 driver upstream nor in MMH's hwmon-testing tree.)
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors