aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2011-10-13 04:43:31 -0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2011-10-24 14:09:45 -0400
commite96f9d89e6213c7630a3323cd0c754e7f2619564 (patch)
tree29c4f0055ae232c6df8d2206ece55a973ed857d1
parent1af1f5313cfea85a185c7bbb5258f7856fc8fea7 (diff)
hwmon: (lm75) Add support for Analog Devices ADT75
Add datasheet reference and device ID for ADT75. The ADT75, like some other LM75 derivatives, needs to be instantiated using methods 1, 2, or 4. For more information see Documentation/i2c/instantiating-devices. Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
-rw-r--r--Documentation/hwmon/lm755
-rw-r--r--drivers/hwmon/Kconfig1
-rw-r--r--drivers/hwmon/lm75.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/hwmon/lm75 b/Documentation/hwmon/lm75
index a1790401fdde..8d40d0fda10a 100644
--- a/Documentation/hwmon/lm75
+++ b/Documentation/hwmon/lm75
@@ -32,6 +32,11 @@ Supported chips:
32 Addresses scanned: I2C 0x48 - 0x4f 32 Addresses scanned: I2C 0x48 - 0x4f
33 Datasheet: Publicly available at the Microchip website 33 Datasheet: Publicly available at the Microchip website
34 http://www.microchip.com/ 34 http://www.microchip.com/
35 * Analog Devices ADT75
36 Prefix: 'adt75'
37 Addresses scanned: I2C 0x48 - 0x4f
38 Datasheet: Publicly available at the Analog Devices website
39 http://www.analog.com/adt75
35 40
36Author: Frodo Looijaard <frodol@dds.nl> 41Author: Frodo Looijaard <frodol@dds.nl>
37 42
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index 378ed8ae34d0..9b347acf1559 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -551,6 +551,7 @@ config SENSORS_LM75
551 If you say yes here you get support for one common type of 551 If you say yes here you get support for one common type of
552 temperature sensor chip, with models including: 552 temperature sensor chip, with models including:
553 553
554 - Analog Devices ADT75
554 - Dallas Semiconductor DS75 and DS1775 555 - Dallas Semiconductor DS75 and DS1775
555 - Maxim MAX6625 and MAX6626 556 - Maxim MAX6625 and MAX6626
556 - Microchip MCP980x 557 - Microchip MCP980x
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index ef902d5d06ab..669481baac00 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -35,6 +35,7 @@
35 */ 35 */
36 36
37enum lm75_type { /* keep sorted in alphabetical order */ 37enum lm75_type { /* keep sorted in alphabetical order */
38 adt75,
38 ds1775, 39 ds1775,
39 ds75, 40 ds75,
40 lm75, 41 lm75,
@@ -213,6 +214,7 @@ static int lm75_remove(struct i2c_client *client)
213} 214}
214 215
215static const struct i2c_device_id lm75_ids[] = { 216static const struct i2c_device_id lm75_ids[] = {
217 { "adt75", adt75, },
216 { "ds1775", ds1775, }, 218 { "ds1775", ds1775, },
217 { "ds75", ds75, }, 219 { "ds75", ds75, },
218 { "lm75", lm75, }, 220 { "lm75", lm75, },