Skip to content

Commit 8249a0e

Browse files
bobisnoobgroeck
authored andcommitted
hwmon: (lm75) Fix tmp112 default config
Set tmp112 conversion rate to 8 HZ and 12-bit mode. Fixes: 35cd180 ("hwmon: (lm75) Aproximate sample times to data-sheet values") Signed-off-by: Abdel Alkuor <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 4b6358e commit 8249a0e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/hwmon/lm75.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,9 @@ static const struct lm75_params device_params[] = {
269269
.resolutions = (u8 []) {9, 10, 11, 12 },
270270
},
271271
[tmp112] = {
272-
.set_mask = 3 << 5, /* 8 samples / second */
273-
.clr_mask = 1 << 7, /* no one-shot mode*/
272+
.config_reg_16bits = true,
273+
.set_mask = 0x60C0, /* 12-bit mode, 8 samples / second */
274+
.clr_mask = 1 << 15, /* no one-shot mode*/
274275
.default_resolution = 12,
275276
.default_sample_time = 125,
276277
.num_sample_times = 4,

0 commit comments

Comments
 (0)