Skip to content

Commit b89362c

Browse files
abhisitlguohan
authored andcommitted
Add support for LM75B (sonic-net#25)
1 parent 0d56999 commit b89362c

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

patch/driver-hwmon-lm75b-update.patch

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
From 7e24a7bf79b4ae6c12cd3306f0340883b6b0fd73 Mon Sep 17 00:00:00 2001
2+
From: Abhisit Sangjan <[email protected]>
3+
Date: Fri, 30 Jun 2017 10:13:12 +0700
4+
Subject: [PATCH] hwmon: Update to support lm75b
5+
6+
* Add lm75b
7+
---
8+
drivers/hwmon/lm75.c | 6 ++++++
9+
1 file changed, 6 insertions(+)
10+
11+
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
12+
index 479ffbe..38b6f8f 100644
13+
--- a/drivers/hwmon/lm75.c
14+
+++ b/drivers/hwmon/lm75.c
15+
@@ -44,6 +44,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
16+
g751,
17+
lm75,
18+
lm75a,
19+
+ lm75b,
20+
max6625,
21+
max6626,
22+
mcp980x,
23+
@@ -232,6 +233,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
24+
data->resolution = 9;
25+
data->sample_time = HZ / 2;
26+
break;
27+
+ case lm75b:
28+
+ data->resolution = 11;
29+
+ data->sample_time = HZ / 4;
30+
+ break;
31+
case max6625:
32+
data->resolution = 9;
33+
data->sample_time = HZ / 4;
34+
@@ -315,6 +320,7 @@ static const struct i2c_device_id lm75_ids[] = {
35+
{ "g751", g751, },
36+
{ "lm75", lm75, },
37+
{ "lm75a", lm75a, },
38+
+ { "lm75b", lm75b, },
39+
{ "max6625", max6625, },
40+
{ "max6626", max6626, },
41+
{ "mcp980x", mcp980x, },
42+
--
43+
1.9.1
44+

patch/series

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ driver-at24-fix-odd-length-two-byte-access.patch
88
driver-hwmon-max6620.patch
99
driver-hwmon-max6620-fix-rpm-calc.patch
1010
driver-hwmon-max6620-update.patch
11+
driver-hwmon-lm75b-update.patch
1112
driver-hwmon-pmbus-dni_dps460.patch
1213
driver-hwmon-pmbus-dni_dps460-update-pmbus-core.patch
1314
driver-i2c-bus-intel-ismt-add-delay-param.patch

0 commit comments

Comments
 (0)