9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2016-11-23 08:46:22 +01:00
parent b68e25415a
commit 0dff3e4627
1 changed files with 2 additions and 2 deletions

View File

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