aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2021-05-26 08:40:17 -0700
committerGuenter Roeck <[email protected]>2021-06-17 04:21:45 -0700
commit897f6339893b741a5d68ae8e2475df65946041c2 (patch)
treeca031eaff13b0fc6d244be34777e3bcc13eb82e4 /tools/perf/scripts/python
parentcbbf244f0515af3472084f22b6213121b4a63835 (diff)
hwmon: (max31790) Report correct current pwm duty cycles
The MAX31790 has two sets of registers for pwm duty cycles, one to request a duty cycle and one to read the actual current duty cycle. Both do not have to be the same. When reporting the pwm duty cycle to the user, the actual pwm duty cycle from pwm duty cycle registers needs to be reported. When setting it, the pwm target duty cycle needs to be written. Since we don't know the actual pwm duty cycle after a target pwm duty cycle has been written, set the valid flag to false to indicate that actual pwm duty cycle should be read from the chip instead of using cached values. Cc: Jan Kundrát <[email protected]> Cc: Václav Kubernát <[email protected]> Signed-off-by: Guenter Roeck <[email protected]> Tested-by: Václav Kubernát <[email protected]> Reviewed-by: Jan Kundrát <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions