diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-01-26 15:49:39 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-01-26 15:49:39 +0100 |
commit | 52f533a6c32f8e1e376c5a335cc067da16d59b61 (patch) | |
tree | 927154580f1ea4c3040286088918ca066adc0b39 /input.c | |
parent | 442bc4e7697a3f20ce9a24df630324d94cd22ba6 (diff) | |
download | input-52f533a6c32f8e1e376c5a335cc067da16d59b61.tar.gz |
input-kbd - switch to using EVIOCGKEYCODE2 when available
[mchehab@redhat.com: Ported it to the -git version]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -101,8 +101,8 @@ int device_open(int nr, int verbose) close(fd); return -1; } - if (EV_VERSION != version) { - fprintf(stderr, "protocol version mismatch (expected %d, got %d)\n", + if (EV_VERSION > version) { + fprintf(stderr, "protocol version mismatch (expected >= %d, got %d)\n", EV_VERSION, version); close(fd); return -1; |