summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-10-22 12:37:10 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-30 13:39:11 +0000
commit1a573bbf2d40320a0a7fa2439f498ae6e8bb2ce3 (patch)
tree256c91b5657fc4c279b182858d95b3b6eae9e597
parent534b44774708f8eab1238c26b825edfdba2ba2cc (diff)
downloadpoky-1a573bbf2d40320a0a7fa2439f498ae6e8bb2ce3.tar.gz
udev: Update touchscreen rule for ID_INPUT_TOUCHSCREEN
Since udev 174 udev has been running input_id as a built-in command and setting this value in the environment for touchscreens. Use this logic to detect when to make a touchscreen0 symlink. (From OE-Core rev: 5abcfcd4380aacafc45d776f557738fb18089113) Signed-off-by: Tom Rini <trini@ti.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-core/udev/udev/local.rules3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/recipes-core/udev/udev/local.rules b/meta/recipes-core/udev/udev/local.rules
index d0cbf91b60..f06002c654 100644
--- a/meta/recipes-core/udev/udev/local.rules
+++ b/meta/recipes-core/udev/udev/local.rules
@@ -19,5 +19,4 @@ ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe
19# Create a symlink to any touchscreen input device 19# Create a symlink to any touchscreen input device
20# Trigger based on input type, that the evbit (-e) has EV_SYN and EV_ABS, 20# Trigger based on input type, that the evbit (-e) has EV_SYN and EV_ABS,
21# has an EV_ABS value (-a) which is used for touchscreen type devices. 21# has an EV_ABS value (-a) which is used for touchscreen type devices.
22SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*", SYMLINK+="input/touchscreen0" 22+SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0"
23