[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B489B44.50101@gmail.com>
Date: Sat, 09 Jan 2010 16:05:40 +0100
From: Roel Kluin <roel.kluin@...il.com>
To: Jiri Kosina <jkosina@...e.cz>, linux-input@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: HID: is scancode correctly reported after key status change in hidinput_hid_event()?
vi drivers/hid/hid-input.c +634 and not in hidinput_hid_event()
/* report the usage code as scancode if the key status has changed */
if (usage->type == EV_KEY && !!test_bit(usage->code, input->key) != value)
input_event(input, EV_MSC, MSC_SCAN, usage->hid);
Only if value is 1 or 0 the input_event() can occur, but value doesn't
seem to be intended to be used as a boolean. are we really doing the
correct test here?
Roel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists