drop compat with ancient Linux kernel

linux-2.6.30 was released 15 years ago - doesn't seem to be necessary
to still support such ancient kernels.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-06-10 11:14:18 +02:00
parent 64407e809d
commit 373139dd06

View File

@@ -421,10 +421,8 @@ event_get_abs(struct libevdev *evdev, int code,
/* We don't trust a zero fuzz as it probably is just a lazy value */
if (fuzz && abs->fuzz > 0)
*fuzz = abs->fuzz;
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30)
if (res)
*res = abs->resolution;
#endif
return 0;
}