Skip to content

Commit

Permalink
drivers/ioexpander/tca64xx.c: Fix polarity register address
Browse files Browse the repository at this point in the history
Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Aug 30, 2024
1 parent b0bf61b commit cfb2b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ioexpander/tca64xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cfb2b93

Please sign in to comment.