Browse Source

drivers: gpio_adp5585: fix input register address

The input register address was somehow missing, fix it.

Signed-off-by: Chekhov Ma <chekhov.ma@nxp.com>
(cherry picked from commit 7726b70033)
backport-90990-to-v3.7-branch
Chekhov Ma 1 month ago committed by github-actions[bot]
parent
commit
ff37f1f7d2
  1. 2
      drivers/gpio/gpio_adp5585.c

2
drivers/gpio/gpio_adp5585.c

@ -193,7 +193,7 @@ static int gpio_adp5585_port_read(const struct device *dev, gpio_port_value_t *v @@ -193,7 +193,7 @@ static int gpio_adp5585_port_read(const struct device *dev, gpio_port_value_t *v
/** Read Input Register */
uint8_t gpi_status_reg;
uint8_t gpi_status_reg = ADP5585_GPI_STATUS_A;
uint8_t gpi_status_buf[2];
ret = i2c_write_read_dt(&parent_cfg->i2c_bus, &gpi_status_reg, 1U,

Loading…
Cancel
Save