linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] compat: add a wrapper for rfkill.h
@ 2010-11-10 23:23 Felix Fietkau
  2010-11-10 23:24 ` [PATCH 2/2] compat-wireless: remove unnecessary chunks from the rfkill patch Felix Fietkau
  2010-11-10 23:40 ` [PATCH 1/2] compat: add a wrapper for rfkill.h Luis R. Rodriguez
  0 siblings, 2 replies; 6+ messages in thread
From: Felix Fietkau @ 2010-11-10 23:23 UTC (permalink / raw)
  To: linux-wireless; +Cc: Luis R. Rodriguez

With this we can get rid of some of the rfkill related patching mess.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
---
--- /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 <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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-11  0:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-10 23:23 [PATCH 1/2] compat: add a wrapper for rfkill.h Felix Fietkau
2010-11-10 23:24 ` [PATCH 2/2] compat-wireless: remove unnecessary chunks from the rfkill patch Felix Fietkau
2010-11-10 23:41   ` Luis R. Rodriguez
2010-11-11  0:04   ` [PATCH v2 " Felix Fietkau
2010-11-11  0:12     ` Luis R. Rodriguez
2010-11-10 23:40 ` [PATCH 1/2] compat: add a wrapper for rfkill.h Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).