mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: Remove unnecessary (void*) conversions
No need cast (void *) to (struct mt7615_phy *). Signed-off-by: Wu Yunchuan <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
5539001fe4
commit
48d4133806
+2
-2
@@ -453,7 +453,7 @@ mt7615_mcu_scan_event(struct mt7615_dev *dev, struct sk_buff *skb)
|
|||||||
else
|
else
|
||||||
mphy = &dev->mt76.phy;
|
mphy = &dev->mt76.phy;
|
||||||
|
|
||||||
phy = (struct mt7615_phy *)mphy->priv;
|
phy = mphy->priv;
|
||||||
|
|
||||||
spin_lock_bh(&dev->mt76.lock);
|
spin_lock_bh(&dev->mt76.lock);
|
||||||
__skb_queue_tail(&phy->scan_event_list, skb);
|
__skb_queue_tail(&phy->scan_event_list, skb);
|
||||||
@@ -481,7 +481,7 @@ mt7615_mcu_roc_event(struct mt7615_dev *dev, struct sk_buff *skb)
|
|||||||
|
|
||||||
ieee80211_ready_on_channel(mphy->hw);
|
ieee80211_ready_on_channel(mphy->hw);
|
||||||
|
|
||||||
phy = (struct mt7615_phy *)mphy->priv;
|
phy = mphy->priv;
|
||||||
phy->roc_grant = true;
|
phy->roc_grant = true;
|
||||||
wake_up(&phy->roc_wait);
|
wake_up(&phy->roc_wait);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1247,7 +1247,7 @@ mt7915_phy_get_nf(struct mt7915_phy *phy, int idx)
|
|||||||
|
|
||||||
void mt7915_update_channel(struct mt76_phy *mphy)
|
void mt7915_update_channel(struct mt76_phy *mphy)
|
||||||
{
|
{
|
||||||
struct mt7915_phy *phy = (struct mt7915_phy *)mphy->priv;
|
struct mt7915_phy *phy = mphy->priv;
|
||||||
struct mt76_channel_state *state = mphy->chan_state;
|
struct mt76_channel_state *state = mphy->chan_state;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -269,7 +269,7 @@ mt7915_mcu_rx_thermal_notify(struct mt7915_dev *dev, struct sk_buff *skb)
|
|||||||
dev->mt76.phys[MT_BAND1])
|
dev->mt76.phys[MT_BAND1])
|
||||||
mphy = dev->mt76.phys[MT_BAND1];
|
mphy = dev->mt76.phys[MT_BAND1];
|
||||||
|
|
||||||
phy = (struct mt7915_phy *)mphy->priv;
|
phy = mphy->priv;
|
||||||
phy->throttle_state = t->ctrl.duty.duty_cycle;
|
phy->throttle_state = t->ctrl.duty.duty_cycle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -160,7 +160,7 @@ static void
|
|||||||
mt7921_mcu_scan_event(struct mt792x_dev *dev, struct sk_buff *skb)
|
mt7921_mcu_scan_event(struct mt792x_dev *dev, struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
struct mt76_phy *mphy = &dev->mt76.phy;
|
struct mt76_phy *mphy = &dev->mt76.phy;
|
||||||
struct mt792x_phy *phy = (struct mt792x_phy *)mphy->priv;
|
struct mt792x_phy *phy = mphy->priv;
|
||||||
|
|
||||||
spin_lock_bh(&dev->mt76.lock);
|
spin_lock_bh(&dev->mt76.lock);
|
||||||
__skb_queue_tail(&phy->scan_event_list, skb);
|
__skb_queue_tail(&phy->scan_event_list, skb);
|
||||||
|
|||||||
+1
-1
@@ -345,7 +345,7 @@ static void
|
|||||||
mt7925_mcu_scan_event(struct mt792x_dev *dev, struct sk_buff *skb)
|
mt7925_mcu_scan_event(struct mt792x_dev *dev, struct sk_buff *skb)
|
||||||
{
|
{
|
||||||
struct mt76_phy *mphy = &dev->mt76.phy;
|
struct mt76_phy *mphy = &dev->mt76.phy;
|
||||||
struct mt792x_phy *phy = (struct mt792x_phy *)mphy->priv;
|
struct mt792x_phy *phy = mphy->priv;
|
||||||
|
|
||||||
spin_lock_bh(&dev->mt76.lock);
|
spin_lock_bh(&dev->mt76.lock);
|
||||||
__skb_queue_tail(&phy->scan_event_list, skb);
|
__skb_queue_tail(&phy->scan_event_list, skb);
|
||||||
|
|||||||
+1
-1
@@ -223,7 +223,7 @@ static void
|
|||||||
mt792x_phy_update_channel(struct mt76_phy *mphy, int idx)
|
mt792x_phy_update_channel(struct mt76_phy *mphy, int idx)
|
||||||
{
|
{
|
||||||
struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76);
|
struct mt792x_dev *dev = container_of(mphy->dev, struct mt792x_dev, mt76);
|
||||||
struct mt792x_phy *phy = (struct mt792x_phy *)mphy->priv;
|
struct mt792x_phy *phy = mphy->priv;
|
||||||
struct mt76_channel_state *state;
|
struct mt76_channel_state *state;
|
||||||
u64 busy_time, tx_time, rx_time, obss_time;
|
u64 busy_time, tx_time, rx_time, obss_time;
|
||||||
int nf;
|
int nf;
|
||||||
|
|||||||
+1
-1
@@ -1525,7 +1525,7 @@ mt7996_phy_get_nf(struct mt7996_phy *phy, u8 band_idx)
|
|||||||
|
|
||||||
void mt7996_update_channel(struct mt76_phy *mphy)
|
void mt7996_update_channel(struct mt76_phy *mphy)
|
||||||
{
|
{
|
||||||
struct mt7996_phy *phy = (struct mt7996_phy *)mphy->priv;
|
struct mt7996_phy *phy = mphy->priv;
|
||||||
struct mt76_channel_state *state = mphy->chan_state;
|
struct mt76_channel_state *state = mphy->chan_state;
|
||||||
int nf;
|
int nf;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user