This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 710bd199e5430d3786da050b2f74ec146c96c261 Author: Jukka Laitinen <juk...@ssrc.tii.ae> AuthorDate: Fri Aug 30 14:04:33 2024 +0300 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 <jukka.laiti...@tii.ae> --- 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);