Commit 8249a0e2 authored by Abdel Alkuor's avatar Abdel Alkuor Committed by Guenter Roeck

hwmon: (lm75) Fix tmp112 default config

Set tmp112 conversion rate to 8 HZ and 12-bit mode.

Fixes: 35cd1804 ("hwmon: (lm75) Aproximate sample times to data-sheet values")
Signed-off-by: default avatarAbdel Alkuor <alkuor@gmail.com>
Link: https://lore.kernel.org/r/20240106030254.384963-1-alkuor@gmail.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 4b6358e1
...@@ -269,8 +269,9 @@ static const struct lm75_params device_params[] = { ...@@ -269,8 +269,9 @@ static const struct lm75_params device_params[] = {
.resolutions = (u8 []) {9, 10, 11, 12 }, .resolutions = (u8 []) {9, 10, 11, 12 },
}, },
[tmp112] = { [tmp112] = {
.set_mask = 3 << 5, /* 8 samples / second */ .config_reg_16bits = true,
.clr_mask = 1 << 7, /* no one-shot mode*/ .set_mask = 0x60C0, /* 12-bit mode, 8 samples / second */
.clr_mask = 1 << 15, /* no one-shot mode*/
.default_resolution = 12, .default_resolution = 12,
.default_sample_time = 125, .default_sample_time = 125,
.num_sample_times = 4, .num_sample_times = 4,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment