Guenter Roeck a051d507ba 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>
2024-07-08 07:52:36 -07:00
..
2023-12-11 06:21:01 -08:00
2024-07-02 12:36:31 -07:00
2023-04-27 11:53:57 -07:00
2024-06-04 09:58:32 -07:00
2024-06-13 16:44:34 -07:00
2024-07-08 07:52:36 -07:00
2024-02-25 12:37:10 -08:00
2023-10-31 17:44:17 -10:00