From cfb2b9355f565ab8fef9cb98059bed99594646c7 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Fri, 30 Aug 2024 14:04:33 +0300 Subject: [PATCH] drivers/ioexpander/tca64xx.c: Fix polarity register address Signed-off-by: Jukka Laitinen --- drivers/ioexpander/tca64xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ioexpander/tca64xx.c b/drivers/ioexpander/tca64xx.c index 24aae53a19df4..7099e2892f65a 100644 --- a/drivers/ioexpander/tca64xx.c +++ b/drivers/ioexpander/tca64xx.c @@ -231,7 +231,7 @@ static uint8_t tca64_output_reg(FAR struct tca64_dev_s *priv, uint8_t pin) static uint8_t tca64_polarity_reg(FAR struct tca64_dev_s *priv, uint8_t pin) { FAR const struct tca64_part_s *part = tca64_getpart(priv); - uint8_t reg = part->tp_output; + uint8_t reg = part->tp_polarity; DEBUGASSERT(pin <= part->tp_ngpios); return reg + (pin >> 3);