forked from konachan700/Q11K_Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompat.h
29 lines (25 loc) · 783 Bytes
/
compat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Backported definitions to support building with older kernels
*/
#ifndef __COMPAT_H
#define __COMPAT_H
#ifndef HID_CP_CONSUMER_CONTROL
#define HID_CP_CONSUMER_CONTROL 0x000c0001
#endif
#ifndef HID_GD_SYSTEM_CONTROL
#define HID_GD_SYSTEM_CONTROL 0x00010080
#endif
#ifndef module_hid_driver
/**
* module_hid_driver() - Helper macro for registering a HID driver
* @__hid_driver: hid_driver struct
*
* Helper macro for HID drivers which do not do anything special in module
* init/exit. This eliminates a lot of boilerplate. Each module may only
* use this macro once, and calling it replaces module_init() and module_exit()
*/
#define module_hid_driver(__hid_driver) \
module_driver(__hid_driver, hid_register_driver, \
hid_unregister_driver)
#endif
#endif