aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2021-06-30 17:07:39 -0700
committerStefano Babic <sbabic@denx.de>2021-07-10 18:12:42 +0200
commit658eb1abd84378d52b9157ca5190475091d0f608 (patch)
tree14f416cff9756c09145b3b54fa03c7a9d3202acc /board
parentc4e565662086170b4d1080800b0c09f0a14a9bde (diff)
downloadu-boot-658eb1abd84378d52b9157ca5190475091d0f608.zip
u-boot-658eb1abd84378d52b9157ca5190475091d0f608.tar.gz
u-boot-658eb1abd84378d52b9157ca5190475091d0f608.tar.bz2
board: gateworks: venice: gsc: fix voltage offset
The voltage offset property is in microvolts so must be scaled accordingly. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'board')
-rw-r--r--board/gateworks/venice/gsc.c2
1 files changed, 1 insertions, 1 deletions
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;