summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-06-10 17:46:03 +0200
committerEnrico Weigelt, metux IT consult <info@metux.net>2024-06-10 18:05:40 +0200
commit7fc0d51f701e933e2a63c631c7de3ebf9dee2559 (patch)
treec7ce48723d32616cea3fc8db96805eebccbdd205 /src
parent7c48b6225bc6cd627b006f25cd194220ae2cfcc9 (diff)
drop quirk for ancient linux kernel version (<2.6.30)
This kernel had been released 1.5 decades ago - probably no need to have special quirks for such an ancient kernel version anymore. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 13ffbdf..92fc330 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -38,7 +38,6 @@
#include <X11/keysym.h>
#include <X11/extensions/XI.h>
-#include <linux/version.h>
#include <sys/stat.h>
#include <libudev.h>
#include <unistd.h>
@@ -1486,10 +1485,8 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device, int num_scroll_axes)
continue;
abs = libevdev_get_abs_info(pEvdev->dev, axis);
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 30)
/* Kernel provides units/mm, X wants units/m */
resolution = abs->resolution * 1000;
-#endif
xf86InitValuatorAxisStruct(device, axnum,
atoms[axnum],