diff options
author | Chu Lin <[email protected]> | 2020-10-04 03:14:45 +0000 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2020-10-06 14:54:55 -0700 |
commit | 9b20aec24b8ab2860ea41182ba554dfcc444c0c8 (patch) | |
tree | dff7ee21914fcd8c1022033b56da80f5b02672a4 /scripts/gdb/linux/cpus.py | |
parent | b9a9a375438e24ac36a82c56259aeccfc7b88346 (diff) |
hwmon: (pmbus/max20730) adjust the vout reading given voltage divider
Problem:
We use voltage dividers so that the voltage presented at the voltage
sense pins is confusing. We might need to convert these readings to more
meaningful readings given the voltage divider.
Solution:
Read the voltage divider resistance from dts and convert the voltage
reading to a more meaningful reading.
Testing:
max20730 with voltage divider
Signed-off-by: Chu Lin <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[groeck: Return -EINVAL instead of -ENODEV on bad deevicetree data]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions