mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
hwmon: (lm75) Add support for the NXP LM75B
It is basically a faster lm75 with improved (11 bit) resolution. Signed-off-by: Michael Thalmeier <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
parent
3434f37835
commit
799fc60214
2 changed files with 11 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ enum lm75_type { /* keep sorted in alphabetical order */
|
|||
g751,
|
||||
lm75,
|
||||
lm75a,
|
||||
lm75b,
|
||||
max6625,
|
||||
max6626,
|
||||
mcp980x,
|
||||
|
|
@ -233,6 +234,10 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
|||
data->resolution = 9;
|
||||
data->sample_time = HZ / 2;
|
||||
break;
|
||||
case lm75b:
|
||||
data->resolution = 11;
|
||||
data->sample_time = HZ / 4;
|
||||
break;
|
||||
case max6625:
|
||||
data->resolution = 9;
|
||||
data->sample_time = HZ / 4;
|
||||
|
|
@ -322,6 +327,7 @@ static const struct i2c_device_id lm75_ids[] = {
|
|||
{ "g751", g751, },
|
||||
{ "lm75", lm75, },
|
||||
{ "lm75a", lm75a, },
|
||||
{ "lm75b", lm75b, },
|
||||
{ "max6625", max6625, },
|
||||
{ "max6626", max6626, },
|
||||
{ "mcp980x", mcp980x, },
|
||||
|
|
|
|||
Loading…
Reference in a new issue