From: Luis R. Rodriguez Date: Fri, 17 Jul 2009 15:31:48 +0000 (-0700) Subject: Add few missing rfkill backport defines X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0bb4ba0fd558f3905ed4099e8676f10dbac6b992;p=openwrt%2Fstaging%2Fblogic.git Add few missing rfkill backport defines These symbols are probably not exported on older kernels but since we are backporting our own rfkill module lets be consistent and prepend backport_ to all exported RFKILL symbols when on older kernels (< 2.6.31). Signed-off-by: Luis R. Rodriguez --- diff --git a/compat/compat-2.6.31.h b/compat/compat-2.6.31.h index 76076485858e..e4c75bc8e26c 100644 --- a/compat/compat-2.6.31.h +++ b/compat/compat-2.6.31.h @@ -19,8 +19,10 @@ */ #define rfkill_get_led_trigger_name backport_rfkill_get_led_trigger_name #define rfkill_set_led_trigger_name backport_rfkill_set_led_trigger_name - #define rfkill_set_hw_state backport_rfkill_set_hw_state +#define rfkill_set_sw_state backport_rfkill_set_sw_state +#define rfkill_init_sw_state backport_rfkill_init_sw_state +#define rfkill_set_states backport_rfkill_set_states #define rfkill_pause_polling backport_rfkill_pause_polling #define rfkill_resume_polling backport_rfkill_resume_polling #define rfkill_blocked backport_rfkill_blocked @@ -29,7 +31,6 @@ #define rfkill_unregister backport_rfkill_unregister #define rfkill_destroy backport_rfkill_destroy - #ifndef ERFKILL #if !defined(CONFIG_ALPHA) && !defined(CONFIG_MIPS) && !defined(CONFIG_PARISC) && !defined(CONFIG_SPARC) #define ERFKILL 132 /* Operation not possible due to RF-kill */