aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon
diff options
context:
space:
mode:
authorJonas Rebmann <jre@pengutronix.de>2025-07-15 15:02:41 +0200
committerGuenter Roeck <linux@roeck-us.net>2025-07-18 09:50:51 -0700
commit3e8e93cbb8b0fe67661665a3e7e80642a02884a5 (patch)
treed451eda06cf2937826714e8bb7cf91b84aeff095 /Documentation/hwmon
parent495a4f0dce9c8c4478c242209748f1ee9e4d5820 (diff)
downloadlinux-3e8e93cbb8b0fe67661665a3e7e80642a02884a5.tar.gz
hwmon: (ina238) Report energy in microjoules
The hwmon sysfs interface specifies that energy values should be reported in microjoules. This is also what tools such as lmsensors expect, reporting wrong values otherwise. Adjust the driver to scale the output accordingly and adjust ina238 driver documentation. Fixes: 6daaf15a1173 ("hwmon: (ina238) Add support for SQ52206") Signed-off-by: Jonas Rebmann <jre@pengutronix.de> Link: https://lore.kernel.org/r/20250715-hwmon-ina238-microjoules-v1-1-9df678568a41@pengutronix.de Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon')
-rw-r--r--Documentation/hwmon/ina238.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/hwmon/ina238.rst b/Documentation/hwmon/ina238.rst
index d1b93cf8627f35..9a24da4786a43f 100644
--- a/Documentation/hwmon/ina238.rst
+++ b/Documentation/hwmon/ina238.rst
@@ -65,7 +65,7 @@ Additional sysfs entries for sq52206
------------------------------------
======================= =======================================================
-energy1_input Energy measurement (mJ)
+energy1_input Energy measurement (uJ)
power1_input_highest Peak Power (uW)
======================= =======================================================