mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-14 05:22:19 -04:00
wifi: libertas: main: remove unused functions
lbs_data_rate_to_fw_index(), lbs_enter_auto_deep_sleep() and
lbs_exit_auto_deep_sleep() last use was removed in 2010 by
commit e86dc1ca46 ("Libertas: cfg80211 support").
Remove them.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20250121013300.433538-2-linux@treblig.org
This commit is contained in:
committed by
Kalle Valo
parent
e50e30fa96
commit
d5b66511fd
@@ -64,11 +64,7 @@ int lbs_resume(struct lbs_private *priv);
|
||||
void lbs_queue_event(struct lbs_private *priv, u32 event);
|
||||
void lbs_notify_command_response(struct lbs_private *priv, u8 resp_idx);
|
||||
|
||||
int lbs_enter_auto_deep_sleep(struct lbs_private *priv);
|
||||
int lbs_exit_auto_deep_sleep(struct lbs_private *priv);
|
||||
|
||||
u32 lbs_fw_index_to_data_rate(u8 index);
|
||||
u8 lbs_data_rate_to_fw_index(u32 rate);
|
||||
|
||||
int lbs_get_firmware(struct device *dev, u32 card_model,
|
||||
const struct lbs_fw_table *fw_table,
|
||||
|
||||
@@ -79,26 +79,6 @@ u32 lbs_fw_index_to_data_rate(u8 idx)
|
||||
return fw_data_rates[idx];
|
||||
}
|
||||
|
||||
/**
|
||||
* lbs_data_rate_to_fw_index - use rate to get the index
|
||||
*
|
||||
* @rate: data rate
|
||||
* returns: index or 0
|
||||
*/
|
||||
u8 lbs_data_rate_to_fw_index(u32 rate)
|
||||
{
|
||||
u8 i;
|
||||
|
||||
if (!rate)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < sizeof(fw_data_rates); i++) {
|
||||
if (rate == fw_data_rates[i])
|
||||
return i;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int lbs_set_iface_type(struct lbs_private *priv, enum nl80211_iftype type)
|
||||
{
|
||||
int ret = 0;
|
||||
@@ -802,26 +782,6 @@ static void auto_deepsleep_timer_fn(struct timer_list *t)
|
||||
(priv->auto_deep_sleep_timeout * HZ)/1000);
|
||||
}
|
||||
|
||||
int lbs_enter_auto_deep_sleep(struct lbs_private *priv)
|
||||
{
|
||||
priv->is_auto_deep_sleep_enabled = 1;
|
||||
if (priv->is_deep_sleep)
|
||||
priv->wakeup_dev_required = 1;
|
||||
mod_timer(&priv->auto_deepsleep_timer ,
|
||||
jiffies + (priv->auto_deep_sleep_timeout * HZ)/1000);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int lbs_exit_auto_deep_sleep(struct lbs_private *priv)
|
||||
{
|
||||
priv->is_auto_deep_sleep_enabled = 0;
|
||||
priv->auto_deep_sleep_timeout = 0;
|
||||
del_timer(&priv->auto_deepsleep_timer);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lbs_init_adapter(struct lbs_private *priv)
|
||||
{
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user