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>
This commit is contained in:
parent
41950cab0f
commit
7726b70033
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue