The following series adds support to ir-keytable for explicitly setting the protocol of scancode<->keycode mappings (requires a patched kernel). The first three patches are cleanups and refactoring which are probably worthwhile to apply in any case. The fourth patch adds the actual support (backward compatible) for set-key and reading the keytable. Separate patches would be necessary to also support reading keytable files with protocol information. --- David Härdeman (4): ir-keytable: clarify the meaning of ir protocols ir-keytable: replace more sysfs if-else code with loops ir-keytable: cleanup keytable code ir-keytable: allow protocol for scancode-keycode mappings utils/keytable/keytable.c | 716 +++++++++++++++++++++++---------------------- 1 file changed, 364 insertions(+), 352 deletions(-) -- David Härdeman -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html