mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
net: rfkill: rk: Add stub for rfkill_get_wifi_power_state() when CONFIG_RFKILL_RK=n
Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> Change-Id: I15897f8421e7f00b08170f428179c82b969e36fd
This commit is contained in:
@@ -46,7 +46,14 @@ struct rksdmmc_gpio_wifi_moudle {
|
||||
struct clk *ext_clk;
|
||||
};
|
||||
|
||||
#if IS_REACHABLE(CONFIG_RFKILL_RK)
|
||||
int rfkill_get_wifi_power_state(int *power);
|
||||
#else
|
||||
static inline int rfkill_get_wifi_power_state(int *power)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
void *rockchip_mem_prealloc(int section, unsigned long size);
|
||||
int rfkill_set_wifi_bt_power(int on);
|
||||
int rockchip_wifi_power(int on);
|
||||
|
||||
Reference in New Issue
Block a user