diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-01-05 10:13:08 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-01-05 10:13:08 +1000 |
commit | d485a1d1bd298d1eef6b65aa693ebb0994316f9c (patch) | |
tree | a5ab341818bd4cd46aac5a6707e3455e3ac547a6 | |
parent | c2c896679b1c120265fb6c769e472c2f4115c584 (diff) |
Change kernel version check to simple ifdefs for MT defines.
The first few were introduced in the same commit (5e5ee68), the others
separately. Use a simple ifdef instead of a kernel version check because
some distros may have backported bits and pieces without changing the
version number.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | evtest.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -309,7 +309,7 @@ char *absolutes[ABS_MAX + 1] = { [ABS_DISTANCE] = "Distance", [ABS_TILT_X] = "XTilt", [ABS_TILT_Y] = "YTilt", [ABS_TOOL_WIDTH] = "Tool Width", [ABS_VOLUME] = "Volume", [ABS_MISC] = "Misc", -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) +#ifdef ABS_MT_BLOB_ID [ABS_MT_TOUCH_MAJOR] = "Touch Major", [ABS_MT_TOUCH_MINOR] = "Touch Minor", [ABS_MT_WIDTH_MAJOR] = "Width Major", @@ -319,12 +319,14 @@ char *absolutes[ABS_MAX + 1] = { [ABS_MT_POSITION_Y] = "Position Y", [ABS_MT_TOOL_TYPE] = "Tool Type", [ABS_MT_BLOB_ID] = "Blob ID", +#endif +#ifdef ABS_MT_TRACKING_ID [ABS_MT_TRACKING_ID] = "Tracking ID", #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) +#ifdef ABS_MT_PRESSURE [ABS_MT_PRESSURE] = "Pressure", #endif -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36) +#ifdef ABS_MT_SLOT [ABS_MT_SLOT] = "Slot", #endif |