From ce18923774d4f8579843b662b4b9c1d3865fb6fc Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 3 Apr 2015 12:07:32 +0200 Subject: 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. Signed-off-by: Anthony G. Basile --- src/shared/missing.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/missing.h') diff --git a/src/shared/missing.h b/src/shared/missing.h index f73140d71b..a5cf627373 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -146,3 +146,7 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle #ifndef INPUT_PROP_POINTING_STICK #define INPUT_PROP_POINTING_STICK 0x05 #endif + +#ifndef INPUT_PROP_ACCELEROMETER +#define INPUT_PROP_ACCELEROMETER 0x06 +#endif -- cgit v1.2.3-54-g00ecf