aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-02-15 11:57:14 -0500
committerGuenter Roeck <linux@roeck-us.net>2013-02-19 20:34:16 -0500
commite46e5dc2b2f364b5192a5878267239b8c8979ba2 (patch)
tree5a2471bdcb58884f5800ed86ac117d64147ab339
parent54be068d19ccdad6864dd8a24c20885af26f851c (diff)
hwmon: (adt7410) Add device table entry for the adt7420
The adt7420 is software compatible to the adt7410. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Reviewed-by: Hartmut Knaack <knaack.h@gmx.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r--drivers/hwmon/Kconfig4
-rw-r--r--drivers/hwmon/adt7410.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 52d5174792ee..89ac1cb26f24 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -180,11 +180,11 @@ config SENSORS_ADM9240
180 will be called adm9240. 180 will be called adm9240.
181 181
182config SENSORS_ADT7410 182config SENSORS_ADT7410
183 tristate "Analog Devices ADT7410" 183 tristate "Analog Devices ADT7410/ADT7420"
184 depends on I2C 184 depends on I2C
185 help 185 help
186 If you say yes here you get support for the Analog Devices 186 If you say yes here you get support for the Analog Devices
187 ADT7410 temperature monitoring chip. 187 ADT7410 and ADT7420 temperature monitoring chips.
188 188
189 This driver can also be built as a module. If so, the module 189 This driver can also be built as a module. If so, the module
190 will be called adt7410. 190 will be called adt7410.
diff --git a/drivers/hwmon/adt7410.c b/drivers/hwmon/adt7410.c
index 99f6d3239cba..99a7290da0a3 100644
--- a/drivers/hwmon/adt7410.c
+++ b/drivers/hwmon/adt7410.c
@@ -407,6 +407,7 @@ static int adt7410_remove(struct i2c_client *client)
407 407
408static const struct i2c_device_id adt7410_ids[] = { 408static const struct i2c_device_id adt7410_ids[] = {
409 { "adt7410", adt7410, }, 409 { "adt7410", adt7410, },
410 { "adt7420", adt7410, },
410 { /* LIST END */ } 411 { /* LIST END */ }
411}; 412};
412MODULE_DEVICE_TABLE(i2c, adt7410_ids); 413MODULE_DEVICE_TABLE(i2c, adt7410_ids);
@@ -455,5 +456,5 @@ static struct i2c_driver adt7410_driver = {
455module_i2c_driver(adt7410_driver); 456module_i2c_driver(adt7410_driver);
456 457
457MODULE_AUTHOR("Hartmut Knaack"); 458MODULE_AUTHOR("Hartmut Knaack");
458MODULE_DESCRIPTION("ADT7410 driver"); 459MODULE_DESCRIPTION("ADT7410/ADT7420 driver");
459MODULE_LICENSE("GPL"); 460MODULE_LICENSE("GPL");