diff options
author | Guenter Roeck <[email protected]> | 2019-06-12 07:39:33 -0700 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2019-06-23 18:33:01 -0700 |
commit | 7d45deb31bec3992cd92a240946fbf872661fa2c (patch) | |
tree | 95d52375a3dd161f51d6512b35bf62aea6950629 /scripts/gdb/linux/timerlist.py | |
parent | e67776cc30894d2840fc0b93fc3b3647677ef0b3 (diff) |
hwmon: (pmbus/adm1275) Fix power sampling support
Not every chip supported by this driver supports setting the number
of samples for power averaging. Also, the power monitoring register
is not always a 16-bit register, and the configuration bits used for
voltage sampling are different depending on the register width.
Some conditional code is needed to fix the problem.
On top of all that, the compiler complains about problems with
FIELD_GET and FIELD_PREP macros if the file is built with W=1.
Avoid using those macros to silence the warning.
Cc: Krzysztof Adamski <[email protected]>
Cc: Alexander Sverdlin <[email protected]>
Reviewed-by: Krzysztof Adamski <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions