Commit 47883130 authored by Mark Einon's avatar Mark Einon Committed by Greg Kroah-Hartman

staging: et131x: et131x_adapter.h checkpatch fixes

Signed-off-by: default avatarMark Einon <mark.einon@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 29667f30
......@@ -452,7 +452,7 @@ void ConfigFlowControl(struct et131x_adapter *etdev)
*/
void UpdateMacStatHostCounters(struct et131x_adapter *etdev)
{
struct _ce_stats_t *stats = &etdev->Stats;
struct ce_stats_t *stats = &etdev->Stats;
struct macstat_regs __iomem *macstat =
&etdev->regs->macstat;
......
......@@ -98,7 +98,7 @@ struct rfd {
#define FLOW_NONE 3
/* Struct to define some device statistics */
typedef struct _ce_stats_t {
struct ce_stats_t {
/* Link Input/Output stats */
uint64_t ipackets; /* # of in packets */
uint64_t opackets; /* # of out packets */
......@@ -143,7 +143,7 @@ typedef struct _ce_stats_t {
u32 SynchrounousIterations;
u32 InterruptStatus;
} CE_STATS_t, *PCE_STATS_t;
};
/* The private adapter structure */
......@@ -239,7 +239,7 @@ struct et131x_adapter {
u8 ReplicaPhyLoopbkPF; /* Replica Enable Pass/Fail */
/* Stats */
CE_STATS_t Stats;
struct ce_stats_t Stats;
struct net_device_stats net_stats;
struct net_device_stats net_stats_prev;
......
......@@ -161,7 +161,7 @@ struct net_device_stats *et131x_stats(struct net_device *netdev)
{
struct et131x_adapter *adapter = netdev_priv(netdev);
struct net_device_stats *stats = &adapter->net_stats;
CE_STATS_t *devstat = &adapter->Stats;
struct ce_stats_t *devstat = &adapter->Stats;
stats->rx_packets = devstat->ipackets;
stats->tx_packets = devstat->opackets;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment