From: Tim Harvey Date: Thu, 1 Jul 2021 00:07:39 +0000 (-0700) Subject: board: gateworks: venice: gsc: fix voltage offset X-Git-Tag: v2021.10~100^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=658eb1abd84378d52b9157ca5190475091d0f608;p=platform%2Fkernel%2Fu-boot.git board: gateworks: venice: gsc: fix voltage offset The voltage offset property is in microvolts so must be scaled accordingly. Signed-off-by: Tim Harvey --- diff --git a/board/gateworks/venice/gsc.c b/board/gateworks/venice/gsc.c index 23ad580..9a6712e 100644 --- a/board/gateworks/venice/gsc.c +++ b/board/gateworks/venice/gsc.c @@ -298,7 +298,7 @@ int gsc_hwmon(void) } /* adjust by offset */ - val += offset; + val += (offset / 1000); printf("%-8s: %d.%03dV\n", label, val / 1000, val % 1000); break;