chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 06:47:54 +0000 (07:47 +0100)
commit4e658ebc585b051672a59b505cc788c12506d364
tree4b374c18b49cb3d29d125fbb2959601b17b61ecb
parent3d8a87825e47c37f08e1d2c9e44435977b78f740
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