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.laitinen@tii.ae>
This commit is contained in:
parent
38fbe166ee
commit
710bd199e5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue