aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/tslib/tslib/0001-relax-EV_VERSION-check-fail-only-if-version-of-runni.patch
blob: 2ff1e0a15cda5df007981c925016c97e858b199b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From cdf285aa7cbcc7de9ad5a8bf4c053372153f4242 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Wed, 12 Jan 2011 14:36:35 +0100
Subject: [PATCH] relax EV_VERSION check, fail only if version of running kernel is lower than EV_VERSION from kernel headers

---
 plugins/input-raw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/input-raw.c b/plugins/input-raw.c
index 9511a0d..4396eab 100644
--- a/plugins/input-raw.c
+++ b/plugins/input-raw.c
@@ -78,7 +78,7 @@ static int check_fd(struct tslib_input *i)
 		return -1;
 	}
 
-	if (version != EV_VERSION) {
+	if (version < EV_VERSION) {
 		fprintf(stderr, "tslib: Selected device uses a different version of the event protocol than tslib was compiled for\n");
 		return -1;
 	}
-- 
1.7.4.rc1