]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/missing.h
udev: input_id: tag accelerometers as ID_INPUT_ACCELEROMETER
authorHans de Goede <hdegoede@redhat.com>
Fri, 3 Apr 2015 10:07:32 +0000 (12:07 +0200)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 7 Apr 2015 01:32:36 +0000 (11:32 +1000)
commitbd1acc9f2ffa9c2baf1ddd6bb965352aef5c7446
tree4d0eafdfb730ff82933451012280dc28aa0082e0
parent606df97b6a2438a8844c828ecdef1e9b25e2e838
udev: input_id: tag accelerometers as ID_INPUT_ACCELEROMETER

input_id already (tries to) tag accelerometers as such, but this only works
for absolute accelerometers. Recent kernels mark accelerometers through an
input prop. Trust that prop and always tag devices with it with
ID_INPUT_ACCELEROMETER.

Note that detection by the prop bit works the same as the existing detection
and will ensure that no other tags get set on the device.
src/shared/missing.h
src/udev/udev-builtin-input_id.c