drivers: gpio: Fix a gpio port read bug
address was passed to QMSi port read function, even though value is needed. Change-Id: I6b923fdc56114936fb4a0c55c923d6b37884e07c Signed-off-by: Baohong Liu <baohong.liu@intel.com>
This commit is contained in:
parent
6f6504c447
commit
44f0481979
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ static inline int gpio_qmsi_read(struct device *port,
|
||||||
qm_gpio_read_pin(gpio, pin, &state);
|
qm_gpio_read_pin(gpio, pin, &state);
|
||||||
*value = state;
|
*value = state;
|
||||||
} else {
|
} else {
|
||||||
qm_gpio_read_port(gpio, (uint32_t *const) &value);
|
qm_gpio_read_port(gpio, (uint32_t *const) value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue