On Mon, Jan 09, 2017 at 06:57:00PM +0100, Hans de Goede wrote: > gpio-keys input devices created by the soc_button_array driver are > configured with key-codes based on ACPI provided information. > > Unfortunately on some tablets this info is wrong, and we need to have > a quirk to fix things up. > > Add support for input_setkeycode to the gpio-keys driver, so that > the existing udev hwdb mechanism can be used to fix things up on these > tablets. > > Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> Applied with minor edits: > > + ddata->keymap = devm_kzalloc(dev, > + pdata->nbuttons * sizeof(unsigned short), > + GFP_KERNEL); Changed to devm_kcalloc(). > + bdata->code = &ddata->keymap[i]; Pushed into gpio_keys_setup_key(). Thanks. -- Dmitry -- 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