staging: rtl8192u: use to_delayed_work
Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
79a5ccd972
commit
a5959f3f12
|
@ -487,7 +487,7 @@ EXPORT_SYMBOL(ieee80211_softmac_scan_syncro);
|
||||||
|
|
||||||
static void ieee80211_softmac_scan_wq(struct work_struct *work)
|
static void ieee80211_softmac_scan_wq(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct delayed_work *dwork = container_of(work, struct delayed_work, work);
|
struct delayed_work *dwork = to_delayed_work(work);
|
||||||
struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, softmac_scan_wq);
|
struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, softmac_scan_wq);
|
||||||
static short watchdog;
|
static short watchdog;
|
||||||
u8 channel_map[MAX_CHANNEL_NUMBER+1];
|
u8 channel_map[MAX_CHANNEL_NUMBER+1];
|
||||||
|
@ -2330,7 +2330,7 @@ static void ieee80211_start_monitor_mode(struct ieee80211_device *ieee)
|
||||||
static void ieee80211_start_ibss_wq(struct work_struct *work)
|
static void ieee80211_start_ibss_wq(struct work_struct *work)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct delayed_work *dwork = container_of(work, struct delayed_work, work);
|
struct delayed_work *dwork = to_delayed_work(work);
|
||||||
struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, start_ibss_wq);
|
struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, start_ibss_wq);
|
||||||
/* iwconfig mode ad-hoc will schedule this and return
|
/* iwconfig mode ad-hoc will schedule this and return
|
||||||
* on the other hand this will block further iwconfig SET
|
* on the other hand this will block further iwconfig SET
|
||||||
|
@ -2504,7 +2504,7 @@ EXPORT_SYMBOL(ieee80211_disassociate);
|
||||||
|
|
||||||
static void ieee80211_associate_retry_wq(struct work_struct *work)
|
static void ieee80211_associate_retry_wq(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct delayed_work *dwork = container_of(work, struct delayed_work, work);
|
struct delayed_work *dwork = to_delayed_work(work);
|
||||||
struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, associate_retry_wq);
|
struct ieee80211_device *ieee = container_of(dwork, struct ieee80211_device, associate_retry_wq);
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
||||||
|
|
|
@ -3436,8 +3436,7 @@ static void rtl819x_update_rxcounts(struct r8192_priv *priv, u32 *TotalRxBcnNum,
|
||||||
|
|
||||||
static void rtl819x_watchdog_wqcallback(struct work_struct *work)
|
static void rtl819x_watchdog_wqcallback(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct delayed_work *dwork = container_of(work,
|
struct delayed_work *dwork = to_delayed_work(work);
|
||||||
struct delayed_work, work);
|
|
||||||
struct r8192_priv *priv = container_of(dwork,
|
struct r8192_priv *priv = container_of(dwork,
|
||||||
struct r8192_priv, watch_dog_wq);
|
struct r8192_priv, watch_dog_wq);
|
||||||
struct net_device *dev = priv->ieee80211->dev;
|
struct net_device *dev = priv->ieee80211->dev;
|
||||||
|
|
|
@ -767,7 +767,7 @@ static void dm_TXPowerTrackingCallback_ThermalMeter(struct net_device *dev)
|
||||||
|
|
||||||
void dm_txpower_trackingcallback(struct work_struct *work)
|
void dm_txpower_trackingcallback(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct delayed_work *dwork = container_of(work, struct delayed_work, work);
|
struct delayed_work *dwork = to_delayed_work(work);
|
||||||
struct r8192_priv *priv = container_of(dwork, struct r8192_priv, txpower_tracking_wq);
|
struct r8192_priv *priv = container_of(dwork, struct r8192_priv, txpower_tracking_wq);
|
||||||
struct net_device *dev = priv->ieee80211->dev;
|
struct net_device *dev = priv->ieee80211->dev;
|
||||||
|
|
||||||
|
@ -2412,7 +2412,7 @@ static void dm_check_pbc_gpio(struct net_device *dev)
|
||||||
*---------------------------------------------------------------------------*/
|
*---------------------------------------------------------------------------*/
|
||||||
void dm_rf_pathcheck_workitemcallback(struct work_struct *work)
|
void dm_rf_pathcheck_workitemcallback(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct delayed_work *dwork = container_of(work, struct delayed_work, work);
|
struct delayed_work *dwork = to_delayed_work(work);
|
||||||
struct r8192_priv *priv = container_of(dwork, struct r8192_priv, rfpath_check_wq);
|
struct r8192_priv *priv = container_of(dwork, struct r8192_priv, rfpath_check_wq);
|
||||||
struct net_device *dev = priv->ieee80211->dev;
|
struct net_device *dev = priv->ieee80211->dev;
|
||||||
/*bool bactually_set = false;*/
|
/*bool bactually_set = false;*/
|
||||||
|
|
|
@ -1683,8 +1683,7 @@ void InitialGain819xUsb(struct net_device *dev, u8 Operation)
|
||||||
|
|
||||||
void InitialGainOperateWorkItemCallBack(struct work_struct *work)
|
void InitialGainOperateWorkItemCallBack(struct work_struct *work)
|
||||||
{
|
{
|
||||||
struct delayed_work *dwork = container_of(work, struct delayed_work,
|
struct delayed_work *dwork = to_delayed_work(work);
|
||||||
work);
|
|
||||||
struct r8192_priv *priv = container_of(dwork, struct r8192_priv,
|
struct r8192_priv *priv = container_of(dwork, struct r8192_priv,
|
||||||
initialgain_operate_wq);
|
initialgain_operate_wq);
|
||||||
struct net_device *dev = priv->ieee80211->dev;
|
struct net_device *dev = priv->ieee80211->dev;
|
||||||
|
|
Loading…
Reference in New Issue