]> code.ossystems Code Review - openembedded-core.git/commitdiff
udev: Update touchscreen rule for ID_INPUT_TOUCHSCREEN
authorTom Rini <trini@ti.com>
Tue, 22 Oct 2013 16:37:10 +0000 (12:37 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Oct 2013 13:39:03 +0000 (13:39 +0000)
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.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/udev/udev/local.rules

index d0cbf91b60a4223f104d3c2ee51aefd36ce5d0dd..f06002c6542e0bbf8e77939e5281273f41edffbe 100644 (file)
@@ -19,5 +19,4 @@ ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe
 # Create a symlink to any touchscreen input device
 # Trigger based on input type, that the evbit (-e) has EV_SYN and EV_ABS,
 # has an EV_ABS value (-a) which is used for touchscreen type devices.
-SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*", SYMLINK+="input/touchscreen0"
-
++SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0"