aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorArnaud Ebalard <arno@natisbad.org>2013-11-09 12:39:14 -0500
committerGuenter Roeck <linux@roeck-us.net>2013-11-18 17:08:05 -0500
commitc98d6c65e6e6bd24a12174fff6ca4990d346de5d (patch)
tree472cd552f3da15494f2859f358167f77ccbf58e8 /drivers/hwmon
parent2d3c627502f2a9b0a7de06a5a2df2365542a72c9 (diff)
hwmon: (lm75) Add support for GMT G751 chip
This was tested on a NETGEAR ReadyNAS 2120 device (Marvell Armada XP based board, via DT). Signed-off-by: Arnaud Ebalard <arno@natisbad.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/Kconfig1
-rw-r--r--drivers/hwmon/lm75.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig
index b3ab9d43bb3e..52d548f1dc1d 100644
--- a/drivers/hwmon/Kconfig
+++ b/drivers/hwmon/Kconfig
@@ -656,6 +656,7 @@ config SENSORS_LM75
656 656
657 - Analog Devices ADT75 657 - Analog Devices ADT75
658 - Dallas Semiconductor DS75, DS1775 and DS7505 658 - Dallas Semiconductor DS75, DS1775 and DS7505
659 - Global Mixed-mode Technology (GMT) G751
659 - Maxim MAX6625 and MAX6626 660 - Maxim MAX6625 and MAX6626
660 - Microchip MCP980x 661 - Microchip MCP980x
661 - National Semiconductor LM75, LM75A 662 - National Semiconductor LM75, LM75A
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index c03b490bba81..7e3ef134f1d2 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -39,6 +39,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
39 ds1775, 39 ds1775,
40 ds75, 40 ds75,
41 ds7505, 41 ds7505,
42 g751,
42 lm75, 43 lm75,
43 lm75a, 44 lm75a,
44 max6625, 45 max6625,
@@ -208,6 +209,7 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
208 data->resolution = 12; 209 data->resolution = 12;
209 data->sample_time = HZ / 4; 210 data->sample_time = HZ / 4;
210 break; 211 break;
212 case g751:
211 case lm75: 213 case lm75:
212 case lm75a: 214 case lm75a:
213 data->resolution = 9; 215 data->resolution = 9;
@@ -296,6 +298,7 @@ static const struct i2c_device_id lm75_ids[] = {
296 { "ds1775", ds1775, }, 298 { "ds1775", ds1775, },
297 { "ds75", ds75, }, 299 { "ds75", ds75, },
298 { "ds7505", ds7505, }, 300 { "ds7505", ds7505, },
301 { "g751", g751, },
299 { "lm75", lm75, }, 302 { "lm75", lm75, },
300 { "lm75a", lm75a, }, 303 { "lm75a", lm75a, },
301 { "max6625", max6625, }, 304 { "max6625", max6625, },