diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-11-23 08:46:22 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-01-10 08:27:33 +0100 |
commit | 0dff3e4627f516c01dfa8013b73c749ee8d773b5 (patch) | |
tree | c4b58e02ab7684a122fe88711d91d962a9676b46 /drivers/input | |
parent | b68e25415a780907723df2f0ce1b54c0fd6d7f4b (diff) | |
download | barebox-0dff3e4627f516c01dfa8013b73c749ee8d773b5.tar.gz barebox-0dff3e4627f516c01dfa8013b73c749ee8d773b5.tar.xz |
input: Fix compiler warning
Fixes:
drivers/input/input.c:46:17: warning: passing argument 2 of '__set_bit' from incompatible pointer type [-Wincompatible-pointer-types]
idev->keys is an array, so we don't need to take the address of it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 31a9c22113..14e44d1378 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -43,9 +43,9 @@ void input_report_key_event(struct input_device *idev, unsigned int code, int va return; if (value) - set_bit(code, &idev->keys); + set_bit(code, idev->keys); else - clear_bit(code, &idev->keys); + clear_bit(code, idev->keys); event.code = code; event.value = value; |