lan78xx: Fix white space and style issues
[ Upstream commit 9ceec7d33adf9647293f24d2fd9a055b89c63864 ] Fix white space and code style issues identified by checkpatch. Signed-off-by: John Efstathiades <john.efstathiades@pebblebay.com> Signed-off-by: David S. Miller <davem@davemloft.net> Stable-dep-of: 1eecc7ab82c4 ("net: lan78xx: fix runtime PM count underflow on link stop") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Sasha Levin

parent
0224cbc53b
commit
061336268e
@@ -385,7 +385,7 @@ struct lan78xx_net {
|
|||||||
struct usb_anchor deferred;
|
struct usb_anchor deferred;
|
||||||
|
|
||||||
struct mutex phy_mutex; /* for phy access */
|
struct mutex phy_mutex; /* for phy access */
|
||||||
unsigned pipe_in, pipe_out, pipe_intr;
|
unsigned int pipe_in, pipe_out, pipe_intr;
|
||||||
|
|
||||||
u32 hard_mtu; /* count any extra framing */
|
u32 hard_mtu; /* count any extra framing */
|
||||||
size_t rx_urb_size; /* size for rx urbs */
|
size_t rx_urb_size; /* size for rx urbs */
|
||||||
@@ -395,7 +395,7 @@ struct lan78xx_net {
|
|||||||
wait_queue_head_t *wait;
|
wait_queue_head_t *wait;
|
||||||
unsigned char suspend_count;
|
unsigned char suspend_count;
|
||||||
|
|
||||||
unsigned maxpacket;
|
unsigned int maxpacket;
|
||||||
struct timer_list delay;
|
struct timer_list delay;
|
||||||
struct timer_list stat_monitor;
|
struct timer_list stat_monitor;
|
||||||
|
|
||||||
@@ -518,10 +518,11 @@ static int lan78xx_read_stats(struct lan78xx_net *dev,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define check_counter_rollover(struct1, dev_stats, member) { \
|
#define check_counter_rollover(struct1, dev_stats, member) \
|
||||||
if (struct1->member < dev_stats.saved.member) \
|
do { \
|
||||||
dev_stats.rollover_count.member++; \
|
if ((struct1)->member < (dev_stats).saved.member) \
|
||||||
}
|
(dev_stats).rollover_count.member++; \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
static void lan78xx_check_stat_rollover(struct lan78xx_net *dev,
|
static void lan78xx_check_stat_rollover(struct lan78xx_net *dev,
|
||||||
struct lan78xx_statstage *stats)
|
struct lan78xx_statstage *stats)
|
||||||
@@ -962,7 +963,7 @@ static int lan78xx_dataport_wait_not_busy(struct lan78xx_net *dev)
|
|||||||
usleep_range(40, 100);
|
usleep_range(40, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
netdev_warn(dev->net, "lan78xx_dataport_wait_not_busy timed out");
|
netdev_warn(dev->net, "%s timed out", __func__);
|
||||||
|
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
@@ -1070,9 +1071,10 @@ static void lan78xx_set_multicast(struct net_device *netdev)
|
|||||||
|
|
||||||
for (i = 0; i < DP_SEL_VHF_HASH_LEN; i++)
|
for (i = 0; i < DP_SEL_VHF_HASH_LEN; i++)
|
||||||
pdata->mchash_table[i] = 0;
|
pdata->mchash_table[i] = 0;
|
||||||
|
|
||||||
/* pfilter_table[0] has own HW address */
|
/* pfilter_table[0] has own HW address */
|
||||||
for (i = 1; i < NUM_OF_MAF; i++) {
|
for (i = 1; i < NUM_OF_MAF; i++) {
|
||||||
pdata->pfilter_table[i][0] =
|
pdata->pfilter_table[i][0] = 0;
|
||||||
pdata->pfilter_table[i][1] = 0;
|
pdata->pfilter_table[i][1] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1267,10 +1269,11 @@ static void lan78xx_status(struct lan78xx_net *dev, struct urb *urb)
|
|||||||
generic_handle_irq(dev->domain_data.phyirq);
|
generic_handle_irq(dev->domain_data.phyirq);
|
||||||
local_irq_enable();
|
local_irq_enable();
|
||||||
}
|
}
|
||||||
} else
|
} else {
|
||||||
netdev_warn(dev->net,
|
netdev_warn(dev->net,
|
||||||
"unexpected interrupt: 0x%08x\n", intdata);
|
"unexpected interrupt: 0x%08x\n", intdata);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int lan78xx_ethtool_get_eeprom_len(struct net_device *netdev)
|
static int lan78xx_ethtool_get_eeprom_len(struct net_device *netdev)
|
||||||
{
|
{
|
||||||
@@ -3334,10 +3337,11 @@ drop:
|
|||||||
if (skb)
|
if (skb)
|
||||||
dev_kfree_skb_any(skb);
|
dev_kfree_skb_any(skb);
|
||||||
usb_free_urb(urb);
|
usb_free_urb(urb);
|
||||||
} else
|
} else {
|
||||||
netif_dbg(dev, tx_queued, dev->net,
|
netif_dbg(dev, tx_queued, dev->net,
|
||||||
"> tx, len %d, type 0x%x\n", length, skb->protocol);
|
"> tx, len %d, type 0x%x\n", length, skb->protocol);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void lan78xx_rx_bh(struct lan78xx_net *dev)
|
static void lan78xx_rx_bh(struct lan78xx_net *dev)
|
||||||
{
|
{
|
||||||
@@ -3610,8 +3614,8 @@ static int lan78xx_probe(struct usb_interface *intf,
|
|||||||
struct net_device *netdev;
|
struct net_device *netdev;
|
||||||
struct usb_device *udev;
|
struct usb_device *udev;
|
||||||
int ret;
|
int ret;
|
||||||
unsigned maxp;
|
unsigned int maxp;
|
||||||
unsigned period;
|
unsigned int period;
|
||||||
u8 *buf = NULL;
|
u8 *buf = NULL;
|
||||||
|
|
||||||
udev = interface_to_usbdev(intf);
|
udev = interface_to_usbdev(intf);
|
||||||
|
Reference in New Issue
Block a user