On Tue, Apr 7, 2015 at 5:42 , Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
Without commenting on validity of making this decision based on
presence or absence of LEDs the proper test would be:
if (!test_bit(EV_LED, hi->input->evbit)) {
Thanks, that's much cleaner. I'll also test for EV_REL instead, which
makes more sense, especially since the keyboard doesn't actually have
physical LEDs.
Andreas
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html