aboutsummaryrefslogtreecommitdiffstats
path: root/include/compat/linux/rfkill.h
blob: d615ac9f5b73be66ea2050b709010257dab14c56 (plain)
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
30
31
32
#ifndef __COMPAT_RFKILL_H
#define __COMPAT_RFKILL_H

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31))

#include_next <linux/rfkill.h>

#else

#include <linux/compat-2.6.h>

#undef CONFIG_RFKILL
#undef CONFIG_RFKILL_INPUT
#undef CONFIG_RFKILL_LEDS

#ifdef CONFIG_RFKILL_BACKPORT
#define CONFIG_RFKILL 1
#endif

#ifdef CONFIG_RFKILL_BACKPORT_INPUT
#define CONFIG_RFKILL_INPUT
#endif

#ifdef CONFIG_RFKILL_BACKPORT_LEDS
#define CONFIG_RFKILL_LEDS
#endif

#include <linux/rfkill_backport.h>

#endif

#endif