mirror of
https://github.com/torvalds/linux.git
synced 2026-05-05 23:05:25 -04:00
wifi: ath9k: btcoex: remove platform_data
This is completely unused as platform files are no longer used anywhere. Signed-off-by: Rosen Penev <rosenp@gmail.com> Acked-by: Toke Høiland-Jørgensen <toke@toke.dk> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://patch.msgid.link/20240906195359.6982-3-rosenp@gmail.com
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
#include <linux/export.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/ath9k_platform.h>
|
||||
#include "hw.h"
|
||||
|
||||
enum ath_bt_mode {
|
||||
@@ -115,23 +114,14 @@ static void ath9k_hw_btcoex_pin_init(struct ath_hw *ah, u8 wlanactive_gpio,
|
||||
u8 btactive_gpio, u8 btpriority_gpio)
|
||||
{
|
||||
struct ath_btcoex_hw *btcoex_hw = &ah->btcoex_hw;
|
||||
struct ath9k_platform_data *pdata = ah->dev->platform_data;
|
||||
|
||||
if (btcoex_hw->scheme != ATH_BTCOEX_CFG_2WIRE &&
|
||||
btcoex_hw->scheme != ATH_BTCOEX_CFG_3WIRE)
|
||||
return;
|
||||
|
||||
/* bt priority GPIO will be ignored by 2 wire scheme */
|
||||
if (pdata && (pdata->bt_active_pin || pdata->bt_priority_pin ||
|
||||
pdata->wlan_active_pin)) {
|
||||
btcoex_hw->btactive_gpio = pdata->bt_active_pin;
|
||||
btcoex_hw->wlanactive_gpio = pdata->wlan_active_pin;
|
||||
btcoex_hw->btpriority_gpio = pdata->bt_priority_pin;
|
||||
} else {
|
||||
btcoex_hw->btactive_gpio = btactive_gpio;
|
||||
btcoex_hw->wlanactive_gpio = wlanactive_gpio;
|
||||
btcoex_hw->btpriority_gpio = btpriority_gpio;
|
||||
}
|
||||
btcoex_hw->btactive_gpio = btactive_gpio;
|
||||
btcoex_hw->wlanactive_gpio = wlanactive_gpio;
|
||||
btcoex_hw->btpriority_gpio = btpriority_gpio;
|
||||
}
|
||||
|
||||
void ath9k_hw_btcoex_init_scheme(struct ath_hw *ah)
|
||||
|
||||
Reference in New Issue
Block a user