input: gpio key: fix compile warning

Change-Id: I897c625d623365a7f9bc49fb4ceb1ed9057cd103
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-06-25 11:14:49 +08:00 committed by Jianhong Chen
parent 917ec9ee71
commit 7b0adbaa7d
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ static int gpio_key_read(struct udevice *dev, int code)
for (i = 0; i < priv->key_nr; i++) {
if (key[i].code != code)
continue;
report = key_parse_gpio_event(key[i]);
report = key_parse_gpio_event(&key[i]);
break;
}