From 9adca90d70cb202906294a9b20666b6cca82417a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 10 Nov 2010 15:38:55 -0800 Subject: [PATCH] compat: add a wrapper for rfkill.h With this we can get rid of some of the rfkill related patching mess. Signed-off-by: Felix Fietkau --- include/linux/rfkill.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 include/linux/rfkill.h diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h new file mode 100644 index 000000000000..d615ac9f5b73 --- /dev/null +++ b/include/linux/rfkill.h @@ -0,0 +1,32 @@ +#ifndef __COMPAT_RFKILL_H +#define __COMPAT_RFKILL_H + +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)) + +#include_next + +#else + +#include + +#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 + +#endif + +#endif -- 2.30.2