From 710bd199e5430d3786da050b2f74ec146c96c261 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 This corrects a copy-paste error; polarity register is tp_polarity, not tp_output 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 cbb3faac17..a830322e6e 100644 --- a/drivers/ioexpander/tca64xx.c +++ b/drivers/ioexpander/tca64xx.c @@ -233,7 +233,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);