summaryrefslogtreecommitdiffstats
path: root/package/libinput/libinput-0001-libinput-evdev.c-use-correct-fallback-value-for-KEY_.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2014-06-02 23:13:54 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-06-02 23:13:54 +0200
commit54b3fd46f51d7c24e65b3ee638fd1d72807da57f (patch)
treead77d081bc318f706ff1eb3ac1672ee5575ec9d6 /package/libinput/libinput-0001-libinput-evdev.c-use-correct-fallback-value-for-KEY_.patch
parent76dff6c63d6b4452e97295d5b512aa5381672ba7 (diff)
downloadbuildroot-54b3fd46f51d7c24e65b3ee638fd1d72807da57f.tar.gz
buildroot-54b3fd46f51d7c24e65b3ee638fd1d72807da57f.zip
libinput: fix build for older kernel headers
Provide a fallback definition for KEY_MICMUTE (which was added in 3.1) and fix the fallback definition for KEY_LIGHTS_TOGGLE (which was added in 3.10). Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/libinput/libinput-0001-libinput-evdev.c-use-correct-fallback-value-for-KEY_.patch')
-rw-r--r--package/libinput/libinput-0001-libinput-evdev.c-use-correct-fallback-value-for-KEY_.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/libinput/libinput-0001-libinput-evdev.c-use-correct-fallback-value-for-KEY_.patch b/package/libinput/libinput-0001-libinput-evdev.c-use-correct-fallback-value-for-KEY_.patch
new file mode 100644
index 0000000000..6eb9d8dc4b
--- /dev/null
+++ b/package/libinput/libinput-0001-libinput-evdev.c-use-correct-fallback-value-for-KEY_.patch
@@ -0,0 +1,29 @@
+From d9b39d4e517a08350800cf253f7434cf4b865b81 Mon Sep 17 00:00:00 2001
+From: Peter Korsgaard <peter@korsgaard.com>
+Date: Mon, 2 Jun 2014 23:02:21 +0200
+Subject: [PATCH 1/2] libinput: evdev.c: use correct fallback value for
+ KEY_LIGHTS_TOGGLE
+
+The kernel defines KEY_LIGHTS_TOGGLE as 0x21e, not 0x160 (which is KEY_OK).
+
+Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
+---
+ src/evdev.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/evdev.c b/src/evdev.c
+index ed5749e..3053764 100644
+--- a/src/evdev.c
++++ b/src/evdev.c
+@@ -42,7 +42,7 @@
+ #define DEFAULT_AXIS_STEP_DISTANCE li_fixed_from_int(10)
+
+ #ifndef KEY_LIGHTS_TOGGLE
+-#define KEY_LIGHTS_TOGGLE 0x160
++#define KEY_LIGHTS_TOGGLE 0x21e
+ #endif
+
+ void
+--
+2.0.0.rc2
+
OpenPOWER on IntegriCloud