Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300628
b: refs/heads/master
c: d6b6fc1
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and John W. Linville committed Apr 9, 2012
1 parent 6e98a47 commit 5263cde
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 68e052d500b7dea51beb6252a73293b62c5de035
refs/heads/master: d6b6fc14f01e4c940e8acb29c611cfaef4d16917
24 changes: 11 additions & 13 deletions trunk/drivers/net/wireless/rtlwifi/wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1954,37 +1954,35 @@ static inline void rtl_write_dword(struct rtl_priv *rtlpriv,
static inline u32 rtl_get_bbreg(struct ieee80211_hw *hw,
u32 regaddr, u32 bitmask)
{
return ((struct rtl_priv *)(hw)->priv)->cfg->ops->get_bbreg(hw,
regaddr,
bitmask);
struct rtl_priv *rtlpriv = hw->priv;

return rtlpriv->cfg->ops->get_bbreg(hw, regaddr, bitmask);
}

static inline void rtl_set_bbreg(struct ieee80211_hw *hw, u32 regaddr,
u32 bitmask, u32 data)
{
((struct rtl_priv *)(hw)->priv)->cfg->ops->set_bbreg(hw,
regaddr, bitmask,
data);
struct rtl_priv *rtlpriv = hw->priv;

rtlpriv->cfg->ops->set_bbreg(hw, regaddr, bitmask, data);
}

static inline u32 rtl_get_rfreg(struct ieee80211_hw *hw,
enum radio_path rfpath, u32 regaddr,
u32 bitmask)
{
return ((struct rtl_priv *)(hw)->priv)->cfg->ops->get_rfreg(hw,
rfpath,
regaddr,
bitmask);
struct rtl_priv *rtlpriv = hw->priv;

return rtlpriv->cfg->ops->get_rfreg(hw, rfpath, regaddr, bitmask);
}

static inline void rtl_set_rfreg(struct ieee80211_hw *hw,
enum radio_path rfpath, u32 regaddr,
u32 bitmask, u32 data)
{
((struct rtl_priv *)(hw)->priv)->cfg->ops->set_rfreg(hw,
rfpath, regaddr,
bitmask, data);
struct rtl_priv *rtlpriv = hw->priv;

rtlpriv->cfg->ops->set_rfreg(hw, rfpath, regaddr, bitmask, data);
}

static inline bool is_hal_stop(struct rtl_hal *rtlhal)
Expand Down

0 comments on commit 5263cde

Please sign in to comment.