diff options
| author | Chris Packham <[email protected]> | 2023-04-18 23:36:55 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2023-04-21 14:27:23 +0000 |
| commit | 2a8e41ad337508fc5d598c0f9288890214f8e318 (patch) | |
| tree | 8ccab1df27d3beae97634f11bde8bcbbe5877104 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
| parent | hwmon: (aquacomputer_d5next) Add support for Aquacomputer Aquastream XT (diff) | |
| download | kernel-2a8e41ad337508fc5d598c0f9288890214f8e318.tar.gz kernel-2a8e41ad337508fc5d598c0f9288890214f8e318.zip | |
hwmon: (adt7475) Use device_property APIs when configuring polarity
On DT unaware platforms of_property_read_u32_array() returns -ENOSYS
which wasn't handled by the code treating adi,pwm-active-state as
optional. Update the code to use device_property_read_u32_array() which
deals gracefully with DT unaware platforms.
Fixes: 86da28eed4fb ("hwmon: (adt7475) Add support for inverting pwm output")
Reported-by: Mariusz Białończyk <[email protected]>
Link: https://lore.kernel.org/linux-hwmon/[email protected]/T/#mdd0505801e0a4e72340de009a47c0fca4f771ed3
Signed-off-by: Chris Packham <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions
