Re: (subset) [PATCH v2] leds: pca9532: Fix inverted GPIO output polarity

From: Lee Jones

Date: Thu Jul 09 2026 - 05:29:33 EST


On Fri, 03 Jul 2026 09:42:01 +0800, Cosmo Chou wrote:
> 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).
>
> [...]

Applied, thanks!

[1/1] leds: pca9532: Fix inverted GPIO output polarity
commit: 65a38a28a0b04af19a5e1fbf3869051412eeac96

--
Lee Jones [李琼斯]