chiark / gitweb /
udev: Fix device matching in the accelerometer
authorBastien Nocera <hadess@hadess.net>
Thu, 10 Jan 2013 13:23:23 +0000 (14:23 +0100)
committerKay Sievers <kay@vrfy.org>
Thu, 10 Jan 2013 13:28:48 +0000 (14:28 +0100)
commit1d010426c01044350b2b32d8b3af5d064f7dfe27
tree8aeeb575e687597ab9fbf81254f6c60ff6e3496c
parent988d77ef2ea05113b54a77ecbd6653e314a9b7d4
udev: Fix device matching in the accelerometer

As we were searching by ID_PATH, it would have been possible
for us to find a sibling device instead of the device we were
looking for.

This fixes device matching on the WeTab with the upstream kernel,
as it was trying to use the "Asus Laptop extra buttons" device
instead of the accelerometer.
src/udev/accelerometer/accelerometer.c