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>
This commit is contained in:
Tom Rini
2013-10-22 12:37:10 -04:00
committed by Richard Purdie
parent 534b447747
commit 1a573bbf2d

View 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"