Skip to content

Commit

Permalink
tca64xx: Fix compile errors
Browse files Browse the repository at this point in the history
Debug print and variable declaration fixed

Signed-off-by: Jouni Ukkonen <[email protected]>
  • Loading branch information
joukkone committed Aug 28, 2024
1 parent 6876f4b commit a72c674
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/ioexpander/tca64xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static int tca64_putreg(struct tca64_dev_s *priv, uint8_t regaddr,
else
{
gpioinfo("claddr=%02x, regaddr=%02x, regval=%02x\n",
priv->config->address, regaddr, regval);
priv->config->address, regaddr, *regval);
return OK;
}
}
Expand Down Expand Up @@ -1349,7 +1349,6 @@ tca64_initialize(FAR struct i2c_master_s *i2c,
FAR struct tca64_config_s *config)
{
FAR struct tca64_dev_s *priv;
int ret;

#ifdef CONFIG_TCA64XX_MULTIPLE
/* Allocate the device state structure */
Expand Down Expand Up @@ -1382,7 +1381,7 @@ tca64_initialize(FAR struct i2c_master_s *i2c,
#ifdef CONFIG_TCA64XX_INT_POLL
/* Set up a timer to poll for missed interrupts */

ret = wd_start(&priv->wdog, TCA64XX_POLLDELAY,
int ret = wd_start(&priv->wdog, TCA64XX_POLLDELAY,
tca64_poll_expiry, (wdparm_t)priv);
if (ret < 0)
{
Expand Down

0 comments on commit a72c674

Please sign in to comment.