udev: add a model-quirks callout
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 9 Jul 2015 03:47:52 +0000 (13:47 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 14 Jul 2015 00:12:12 +0000 (10:12 +1000)
commitb06a1be01322f17e98b69a3633f0efc7b862e429
tree1897d888678a17bf43a5663d421e892405bbe311
parenta4f5abd18e4e6c98d4c467016bbe9b13a8a8b05d
udev: add a model-quirks callout

Some model-specific information isn't available through udev properties. This
callout is used to query the device directly and set a property that we can
then match on for the hwdb entries.

This is geared for Elantech and ALPS touchpads where the firmware version is
the interesting bit. The udev rule is added already to match on that, note
that the callout doesn't do anything at this point. The various
touchpad-related things will be added separately.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
udev/.gitignore
udev/90-libinput-model-quirks.hwdb
udev/90-libinput-model-quirks.rules.in
udev/Makefile.am
udev/libinput-model-quirks.c [new file with mode: 0644]