mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-16 23:07:00 +00:00
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>
This commit is contained in:
parent
c4e5656620
commit
658eb1abd8
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue