udev: move the KEY_* defines to missing.h (#6278)
This commit is contained in:
committed by
Lennart Poettering
parent
39b6a511e0
commit
ea7a562a69
@@ -1073,6 +1073,15 @@ struct input_mask {
|
||||
#define INPUT_PROP_ACCELEROMETER 0x06
|
||||
#endif
|
||||
|
||||
#ifndef BTN_DPAD_UP
|
||||
#define BTN_DPAD_UP 0x220
|
||||
#define BTN_DPAD_RIGHT 0x223
|
||||
#endif
|
||||
|
||||
#ifndef KEY_ALS_TOGGLE
|
||||
#define KEY_ALS_TOGGLE 0x230
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_KEY_SERIAL_T
|
||||
typedef int32_t key_serial_t;
|
||||
#endif
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <linux/input.h>
|
||||
|
||||
#include "fd-util.h"
|
||||
#include "missing.h"
|
||||
#include "stdio-util.h"
|
||||
#include "string-util.h"
|
||||
#include "udev.h"
|
||||
@@ -44,17 +45,6 @@
|
||||
#define LONG(x) ((x)/BITS_PER_LONG)
|
||||
#define test_bit(bit, array) ((array[LONG(bit)] >> OFF(bit)) & 1)
|
||||
|
||||
/* available as of kernel 3.11 */
|
||||
#ifndef BTN_DPAD_UP
|
||||
#define BTN_DPAD_UP 0x220
|
||||
#define BTN_DPAD_RIGHT 0x223
|
||||
#endif /* BTN_DPAD_UP */
|
||||
|
||||
/* available as of kernel 3.13 */
|
||||
#ifndef KEY_ALS_TOGGLE
|
||||
#define KEY_ALS_TOGGLE 0x230
|
||||
#endif /* KEY_ALS_TOGGLE */
|
||||
|
||||
struct range {
|
||||
unsigned start;
|
||||
unsigned end;
|
||||
|
||||
Reference in New Issue
Block a user