diff options
| author | Cosmo Chou <chou.cosmo@gmail.com> | 2026-07-03 09:42:01 +0800 |
|---|---|---|
| committer | Lee Jones <lee@kernel.org> | 2026-07-09 10:28:57 +0100 |
| commit | 65a38a28a0b04af19a5e1fbf3869051412eeac96 (patch) | |
| tree | 6d14472bffd8c2833eccc05457c54a933fc0bc32 /scripts/git.orderFile | |
| parent | f647a2266289a35eaa4865f629f2ab7046900d9b (diff) | |
| download | linux-65a38a28a0b04af19a5e1fbf3869051412eeac96.tar.gz linux-65a38a28a0b04af19a5e1fbf3869051412eeac96.zip | |
leds: pca9532: Fix inverted GPIO output polarity
The pca9532_gpio_set_value() function incorrectly mapped the requested
value to PCA9532_ON and PCA9532_OFF, inverting the GPIO output polarity.
A requested logical high (val=1) incorrectly enabled the LED output
driver, which on this open-drain device pulls the pin low, while a
requested logical low (val=0) released the pin.
Correct the mapping so that val=1 yields PCA9532_OFF (pin released /
high-impedance) and val=0 yields PCA9532_ON (pin driven low).
pca9532_gpio_direction_input() is also updated to pass val=1 to
pca9532_gpio_set_value() to align with the corrected polarity mapping,
ensuring the pin remains not driven when configured as an input.
Fixes: 3c1ab50d0a31 ("drivers/leds/leds-pca9532.c: add gpio capability")
Signed-off-by: Cosmo Chou <chou.cosmo@gmail.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260703014201.69829-1-chou.cosmo@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'scripts/git.orderFile')
0 files changed, 0 insertions, 0 deletions
