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:
Baohong Liu 2016-06-02 15:19:58 -07:00 committed by Anas Nashif
commit 44f0481979

View file

@ -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;