X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fhwmon%2Flm75.c;h=d16dbb33a531792834a4ee2bd2dff078ec78f5c9;hb=d4e1f5a14e17d4f0e8034c0967511884bcb12fba;hp=479ffbeed3f8a0c2d3adb1c9f132e43f5a6a9c57;hpb=3510a6949546901cc97fd057e9c74975257375d2;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c index 479ffbeed3f8..d16dbb33a531 100644 --- a/drivers/hwmon/lm75.c +++ b/drivers/hwmon/lm75.c @@ -52,6 +52,7 @@ enum lm75_type { /* keep sorted in alphabetical order */ tmp100, tmp101, tmp105, + tmp112, tmp175, tmp275, tmp75, @@ -255,6 +256,12 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id) data->sample_time = HZ; clr_mask |= 1 << 7; /* not one-shot mode */ break; + case tmp112: + set_mask |= 3 << 5; /* 12-bit mode */ + clr_mask |= 1 << 7; /* not one-shot mode */ + data->resolution = 12; + data->sample_time = HZ / 4; + break; case tmp105: case tmp175: case tmp275: @@ -323,6 +330,7 @@ static const struct i2c_device_id lm75_ids[] = { { "tmp100", tmp100, }, { "tmp101", tmp101, }, { "tmp105", tmp105, }, + { "tmp112", tmp112, }, { "tmp175", tmp175, }, { "tmp275", tmp275, }, { "tmp75", tmp75, },