diff options
author | 2022-12-20 15:33:35 +0800 | |
---|---|---|
committer | 2023-01-30 08:00:51 +0000 | |
commit | d8960dfb9d6dd940265cd48d7de6ad7060aa6963 (patch) | |
tree | 72da0b2961b5ce56615c34ea76efceb285369ade /tools/perf/scripts/python/export-to-postgresql.py | |
parent | leds: led-class: Add generic [devm_]led_get() (diff) | |
download | wireguard-linux-d8960dfb9d6dd940265cd48d7de6ad7060aa6963.tar.xz wireguard-linux-d8960dfb9d6dd940265cd48d7de6ad7060aa6963.zip |
leds: pwm: Clear the led structure before parsing each child node
I defined 2 leds in the device tree, in the 1st led node, the
max-brightness is set to 248, while in the 2nd led node, I
mis-spelled the max-brightness to max-brighttness, but the driver
is still able to get the max-brightness 248 for the 2nd node, that
is because the led structure is not cleared before parsing each child
node.
pwmleds {
compatible = "pwm-leds";
pwm-green {
...
max-brightness = <248>;
};
pwm-red {
...
max-brighttness = <128>;
};
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20221220073335.393489-1-hui.wang@canonical.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions