|
| 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 | + |
0 commit comments