summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorDaniel Matyas <daniel.matyas@analog.com>2023-09-19 12:34:50 +0300
committerGuenter Roeck <linux@roeck-us.net>2023-10-28 09:21:40 -0700
commit8824557037d50f7819cef07b32ca9974965bd7ba (patch)
tree4906a2c1868925a577acc39f6250eb4374aa9cbd /drivers/hwmon
parent9ca6696718cc3f8ca94172d834567f35500f21bf (diff)
hwmon: (max31827) Modify conversion wait time
There is nothing in the datasheet indicating that the 1ms error is needed and I didn't encounter any error during testing with 140ms wait time. Signed-off-by: Daniel Matyas <daniel.matyas@analog.com> Link: https://lore.kernel.org/r/20230919093456.10592-2-daniel.matyas@analog.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/max31827.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max31827.c b/drivers/hwmon/max31827.c
index 6e3e034aae32..614bbf5d25fa 100644
--- a/drivers/hwmon/max31827.c
+++ b/drivers/hwmon/max31827.c
@@ -25,7 +25,7 @@
#define MAX31827_CONFIGURATION_U_TEMP_STAT_MASK BIT(14)
#define MAX31827_CONFIGURATION_O_TEMP_STAT_MASK BIT(15)
-#define MAX31827_12_BIT_CNV_TIME 141
+#define MAX31827_12_BIT_CNV_TIME 140
#define MAX31827_16_BIT_TO_M_DGR(x) (sign_extend32(x, 15) * 1000 / 16)
#define MAX31827_M_DGR_TO_16_BIT(x) (((x) << 4) / 1000)