aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Thalmeier <michael.thalmeier@hale.at>2014-11-18 11:08:04 -0500
committerGuenter Roeck <linux@roeck-us.net>2014-11-30 23:13:13 -0500
commit799fc6021430243592ea8390aa4865713a12fd5f (patch)
tree5bcafe28a6b3dca1a3e73da49d17e488f56d5901
parent3434f37835804331dd505722cd0010d708305837 (diff)
hwmon: (lm75) Add support for the NXP LM75B
It is basically a faster lm75 with improved (11 bit) resolution. Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r--Documentation/hwmon/lm755
-rw-r--r--drivers/hwmon/lm75.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/hwmon/lm75 b/Documentation/hwmon/lm75
index c6a5ff1b4641..67691a0aa41d 100644
--- a/Documentation/hwmon/lm75
+++ b/Documentation/hwmon/lm75
@@ -53,6 +53,11 @@ Supported chips:
53 http://www.ti.com/product/tmp75 53 http://www.ti.com/product/tmp75
54 http://www.ti.com/product/tmp175 54 http://www.ti.com/product/tmp175
55 http://www.ti.com/product/tmp275 55 http://www.ti.com/product/tmp275
56 * NXP LM75B
57 Prefix: 'lm75b'
58 Addresses scanned: none
59 Datasheet: Publicly available at the NXP website
60 http://www.nxp.com/documents/data_sheet/LM75B.pdf
56 61
57Author: Frodo Looijaard <frodol@dds.nl> 62Author: Frodo Looijaard <frodol@dds.nl>
58 63
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index d16dbb33a531..f58439b817b5 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -44,6 +44,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
44 g751, 44 g751,
45 lm75, 45 lm75,
46 lm75a, 46 lm75a,
47 lm75b,
47 max6625, 48 max6625,
48 max6626, 49 max6626,
49 mcp980x, 50 mcp980x,
@@ -233,6 +234,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
233 data->resolution = 9; 234 data->resolution = 9;
234 data->sample_time = HZ / 2; 235 data->sample_time = HZ / 2;
235 break; 236 break;
237 case lm75b:
238 data->resolution = 11;
239 data->sample_time = HZ / 4;
240 break;
236 case max6625: 241 case max6625:
237 data->resolution = 9; 242 data->resolution = 9;
238 data->sample_time = HZ / 4; 243 data->sample_time = HZ / 4;
@@ -322,6 +327,7 @@ static const struct i2c_device_id lm75_ids[] = {
322 { "g751", g751, }, 327 { "g751", g751, },
323 { "lm75", lm75, }, 328 { "lm75", lm75, },
324 { "lm75a", lm75a, }, 329 { "lm75a", lm75a, },
330 { "lm75b", lm75b, },
325 { "max6625", max6625, }, 331 { "max6625", max6625, },
326 { "max6626", max6626, }, 332 { "max6626", max6626, },
327 { "mcp980x", mcp980x, }, 333 { "mcp980x", mcp980x, },