On Wed, 2014-01-15 at 14:29 +0800, Alex Hung wrote: This looks pretty good, but: > +static void hpwl_notify(struct acpi_device *acpi_dev, u32 event) > +{ > + const struct key_entry *key; > + > + if (event != 0x80) { > + pr_info("Received unknown event (0x%x)\n", event); > + return; > + } You're checking that it's 0x80, then using sparse_keymap_entry_from_scancode() to effectively check whether it's 0x80, so this is redundant. But I suspect that this is actually wrong - 0x80 is often used as a generic notification event, with a separate method for looking up the actual keycode. Do you have some ASL describing the device? Also, could you add a description of what the device does to the commit so it shows up nicely in the changelog? -- Matthew Garrett <matthew.garrett@xxxxxxxxxx> ��.n��������+%������w��{.n������_���v��z����n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�