This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: keytable: improve description of ir-keytable
Author:  Sean Young <s...@mess.org>
Date:    Wed Apr 3 10:18:22 2019 +0100

Signed-off-by: Sean Young <s...@mess.org>

 utils/keytable/ir-keytable.1.in |  8 +++++---
 utils/keytable/keytable.c       | 10 +++++++---
 2 files changed, 12 insertions(+), 6 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=95f39aae48c6e8e5cc81e6ae6293d999f70a909b
diff --git a/utils/keytable/ir-keytable.1.in b/utils/keytable/ir-keytable.1.in
index 3ea7ea51ad57..5237f0be2620 100644
--- a/utils/keytable/ir-keytable.1.in
+++ b/utils/keytable/ir-keytable.1.in
@@ -5,9 +5,11 @@ ir\-keytable \- a swiss\-knife tool to handle Remote 
Controllers.
 .B ir\-keytable
 [\fIOPTION\fR]...
 .SH DESCRIPTION
-ir\-keytable is a tool that lists the Remote Controller devices, allows one to
-get/set rc keycode/scancode tables, set protocol decoder, test events
-generated by a rc device, and to adjust other Remote Controller options.
+ir\-keytable is a tool that lists Remote Controller devices, loads
+rc keymaps, tests events, and adjusts other Remote Controller options.
+.PP
+Rather than loading a rc keymap, it is also possible to set protocol decoders
+and set rc scancode to keycode mappings directly.
 .PP
 Note: You need to have read permissions on /dev/input for most of the
 options to work.
diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c
index 2ad36d8791d1..9384532baf47 100644
--- a/utils/keytable/keytable.c
+++ b/utils/keytable/keytable.c
@@ -95,7 +95,7 @@ struct cfgfile {
        struct cfgfile  *next;
 };
 
-struct sysfs_names  {
+struct sysfs_names {
        char                    *name;
        struct sysfs_names      *next;
 };
@@ -227,7 +227,11 @@ const char *argp_program_version = "IR keytable control 
version " V4L_UTILS_VERS
 const char *argp_program_bug_address = "Mauro Carvalho Chehab 
<mche...@kernel.org>";
 
 static const char doc[] = N_(
-       "\nAllows get/set IR keycode/scancode tables\n"
+       "\nLists Remote Controller devices, loads rc keymaps, tests events, and 
adjusts\n"
+       "other Remote Controller options. Rather than loading a rc keymap, it 
is also\n"
+       "possible to set protocol decoders and set rc scancode to keycode 
mappings\n"
+       "directly.\n"
+
        "You need to have read permissions on /dev/input for the program to 
work\n"
        "\nOn the options below, the arguments are:\n"
        "  SYSDEV    - the rc device as found at /sys/class/rc\n"
@@ -1593,7 +1597,7 @@ static void print_scancodes(const struct lirc_scancode 
*scancodes, unsigned coun
 {
        unsigned i;
 
-       for (i=0; i< count; i++)  {
+       for (i=0; i< count; i++) {
                const char *p = protocol_name(scancodes[i].rc_proto);
 
                printf(_("%llu.%06llu: "),

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to