[libevdev/f21] Update to 3.17 header
Peter Hutterer
whot at fedoraproject.org
Thu Nov 13 01:20:47 UTC 2014
commit 23f030c51d9e648d9583739bab1b054efe6e31c9
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Thu Nov 13 11:18:57 2014 +1000
Update to 3.17 header
0001-include-update-to-3.17-kernel-header.patch | 63 +++++++++++++++++++++++
libevdev.spec | 8 +++-
2 files changed, 70 insertions(+), 1 deletions(-)
---
diff --git a/0001-include-update-to-3.17-kernel-header.patch b/0001-include-update-to-3.17-kernel-header.patch
new file mode 100644
index 0000000..698687e
--- /dev/null
+++ b/0001-include-update-to-3.17-kernel-header.patch
@@ -0,0 +1,63 @@
+From 7e6d4f503e92c29769231ec259b1a3dd2a9204eb Mon Sep 17 00:00:00 2001
+From: Peter Hutterer <peter.hutterer at who-t.net>
+Date: Thu, 13 Nov 2014 11:18:02 +1000
+Subject: [PATCH libevdev] include: update to 3.17 kernel header
+
+---
+ include/linux/input.h | 19 ++++++++++++++++++-
+ 1 file changed, 18 insertions(+), 1 deletion(-)
+
+diff --git a/include/linux/input.h b/include/linux/input.h
+index e37293b..3f2f357 100644
+--- a/include/linux/input.h
++++ b/include/linux/input.h
+@@ -162,6 +162,8 @@ struct input_keymap_entry {
+ #define INPUT_PROP_DIRECT 0x01 /* direct input devices */
+ #define INPUT_PROP_BUTTONPAD 0x02 /* has button(s) under pad */
+ #define INPUT_PROP_SEMI_MT 0x03 /* touch rectangle only */
++#define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */
++#define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */
+
+ #define INPUT_PROP_MAX 0x1f
+ #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1)
+@@ -459,7 +461,10 @@ struct input_keymap_entry {
+ #define KEY_VIDEO_NEXT 241 /* drive next video source */
+ #define KEY_VIDEO_PREV 242 /* drive previous video source */
+ #define KEY_BRIGHTNESS_CYCLE 243 /* brightness up, after max is min */
+-#define KEY_BRIGHTNESS_ZERO 244 /* brightness off, use ambient */
++#define KEY_BRIGHTNESS_AUTO 244 /* Set Auto Brightness: manual
++ brightness control is off,
++ rely on ambient */
++#define KEY_BRIGHTNESS_ZERO KEY_BRIGHTNESS_AUTO
+ #define KEY_DISPLAY_OFF 245 /* display device to off state */
+
+ #define KEY_WWAN 246 /* Wireless WAN (LTE, UMTS, GSM, etc.) */
+@@ -629,6 +634,7 @@ struct input_keymap_entry {
+ #define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */
+ #define KEY_MESSENGER 0x1ae /* AL Instant Messaging */
+ #define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */
++#define KEY_BRIGHTNESS_TOGGLE KEY_DISPLAYTOGGLE
+ #define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */
+ #define KEY_LOGOFF 0x1b1 /* AL Logoff */
+
+@@ -720,6 +726,17 @@ struct input_keymap_entry {
+
+ #define KEY_ALS_TOGGLE 0x230 /* Ambient light sensor */
+
++#define KEY_BUTTONCONFIG 0x240 /* AL Button Configuration */
++#define KEY_TASKMANAGER 0x241 /* AL Task/Project Manager */
++#define KEY_JOURNAL 0x242 /* AL Log/Journal/Timecard */
++#define KEY_CONTROLPANEL 0x243 /* AL Control Panel */
++#define KEY_APPSELECT 0x244 /* AL Select Task/Application */
++#define KEY_SCREENSAVER 0x245 /* AL Screen Saver */
++#define KEY_VOICECOMMAND 0x246 /* Listening Voice Command */
++
++#define KEY_BRIGHTNESS_MIN 0x250 /* Set Brightness to Minimum */
++#define KEY_BRIGHTNESS_MAX 0x251 /* Set Brightness to Maximum */
++
+ #define BTN_TRIGGER_HAPPY 0x2c0
+ #define BTN_TRIGGER_HAPPY1 0x2c0
+ #define BTN_TRIGGER_HAPPY2 0x2c1
+--
+2.1.0
+
diff --git a/libevdev.spec b/libevdev.spec
index 4e3fb8f..119a99a 100644
--- a/libevdev.spec
+++ b/libevdev.spec
@@ -1,6 +1,6 @@
Name: libevdev
Version: 1.2.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Kernel Evdev Device Wrapper Library
Group: System Environment/Libraries
@@ -8,6 +8,8 @@ License: MIT
URL: http://www.freedesktop.org/wiki/Software/libevdev
Source0: http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
+Patch01: 0001-include-update-to-3.17-kernel-header.patch
+
BuildRequires: automake libtool
BuildRequires: python
@@ -31,6 +33,7 @@ Utilities to handle and/or debug evdev devices.
%prep
%setup -q -n %{name}-%{version}
+%patch01 -p1
%build
autoreconf --force -v --install || exit 1
@@ -63,6 +66,9 @@ rm -f %{buildroot}%{_libdir}/*.la
%{_bindir}/touchpad-edge-detector
%changelog
+* Thu Nov 13 2014 Peter Hutterer <peter.hutterer at redhat.com> 1.2.2-4
+- Update to 3.17 header
+
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
More information about the scm-commits
mailing list