From: Dmitry Torokhov Date: Thu, 16 Sep 2010 02:36:56 +0000 (-0700) Subject: Input: hid-input - allow mapping unknown usages X-Git-Tag: v2.6.37-rc1~135^2^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5854fad395b93071292bff27c0121b6e32215e0;p=pandora-kernel.git Input: hid-input - allow mapping unknown usages Currently HID layer only allows to remap keycodes for known usages, and responds with -EINVAL when user tries to map new usage code. This precludes us form relying on udev/keymap for establishing correct mappings and forces us to write dummy HID drivers responsible only for setting up keymaps. Let's allow remapping not only usages that have been set up as keys (usage->type == EV_KEY) but also yet-unmapped usages (usage->type == 0). Acked-by: Jarod Wilson Acked-by: Jiri Kosina Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed