diff options
author | Guenter Roeck <linux@roeck-us.net> | 2024-06-27 10:48:27 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-07-08 07:52:36 -0700 |
commit | a051d507ba1718e0e833f3d8d80defc85ca20c2d (patch) | |
tree | 479bae57c3bc2f86793cca4cf28d66b30ea7430b /drivers/hwmon/Kconfig | |
parent | 8d061050fd826b0cc425765b1ac22b4c088dedbb (diff) | |
download | linux-a051d507ba1718e0e833f3d8d80defc85ca20c2d.tar.gz linux-a051d507ba1718e0e833f3d8d80defc85ca20c2d.tar.bz2 linux-a051d507ba1718e0e833f3d8d80defc85ca20c2d.zip |
hwmon: (amc6821) Convert to use regmap
Use regmap for register accesses and caching.
While at it, use sysfs_emit() instead of sprintf() to write sysfs
attribute data, and remove spurious debug messages which would only
be seen as result of a bug in the code. Also make sure that error
codes are propagated and not replaced with -EIO.
While at it, introduce rounding of written temperature values and for
internal calculations to reduce deviation from written values and as
much as possible.
No functional change intended except for differences introduced by
rounding.
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/Kconfig')
-rw-r--r-- | drivers/hwmon/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index d5eced417fc3..3d6f49526716 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -2127,6 +2127,7 @@ config SENSORS_ADS7871 config SENSORS_AMC6821 tristate "Texas Instruments AMC6821" depends on I2C + select REGMAP_I2C help If you say yes here you get support for the Texas Instruments AMC6821 hardware monitoring chips. |