]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/blob - include/linux/rfkill.h
compat: add a wrapper for rfkill.h
[~emulex/for-vlad/old/compat.git] / include / linux / rfkill.h
1 #ifndef __COMPAT_RFKILL_H
2 #define __COMPAT_RFKILL_H
3
4 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31))
5
6 #include_next <linux/rfkill.h>
7
8 #else
9
10 #include <linux/compat-2.6.h>
11
12 #undef CONFIG_RFKILL
13 #undef CONFIG_RFKILL_INPUT
14 #undef CONFIG_RFKILL_LEDS
15
16 #ifdef CONFIG_RFKILL_BACKPORT
17 #define CONFIG_RFKILL 1
18 #endif
19
20 #ifdef CONFIG_RFKILL_BACKPORT_INPUT
21 #define CONFIG_RFKILL_INPUT
22 #endif
23
24 #ifdef CONFIG_RFKILL_BACKPORT_LEDS
25 #define CONFIG_RFKILL_LEDS
26 #endif
27
28 #include <linux/rfkill_backport.h>
29
30 #endif
31
32 #endif