diff options
author | stephen hemminger <shemminger@vyatta.com> | 2010-10-13 10:50:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-16 14:13:24 -0400 |
commit | 8ee17ae68c0f1e281a432a4318fa2511e25c9492 (patch) | |
tree | 9cc5c2d6423c75767f3844dd6c4a42b4eb1699d1 /drivers/net/stmmac | |
parent | 31e3c3f6f1f9b154981a0e6620df700463db30ee (diff) |
stmmac: make ethtool functions local
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/stmmac')
-rw-r--r-- | drivers/net/stmmac/stmmac_ethtool.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/drivers/net/stmmac/stmmac_ethtool.c b/drivers/net/stmmac/stmmac_ethtool.c index 25a7e385f8ec..de7589287fb8 100644 --- a/drivers/net/stmmac/stmmac_ethtool.c +++ b/drivers/net/stmmac/stmmac_ethtool.c | |||
@@ -89,8 +89,8 @@ static const struct stmmac_stats stmmac_gstrings_stats[] = { | |||
89 | }; | 89 | }; |
90 | #define STMMAC_STATS_LEN ARRAY_SIZE(stmmac_gstrings_stats) | 90 | #define STMMAC_STATS_LEN ARRAY_SIZE(stmmac_gstrings_stats) |
91 | 91 | ||
92 | void stmmac_ethtool_getdrvinfo(struct net_device *dev, | 92 | static void stmmac_ethtool_getdrvinfo(struct net_device *dev, |
93 | struct ethtool_drvinfo *info) | 93 | struct ethtool_drvinfo *info) |
94 | { | 94 | { |
95 | struct stmmac_priv *priv = netdev_priv(dev); | 95 | struct stmmac_priv *priv = netdev_priv(dev); |
96 | 96 | ||
@@ -104,7 +104,8 @@ void stmmac_ethtool_getdrvinfo(struct net_device *dev, | |||
104 | info->n_stats = STMMAC_STATS_LEN; | 104 | info->n_stats = STMMAC_STATS_LEN; |
105 | } | 105 | } |
106 | 106 | ||
107 | int stmmac_ethtool_getsettings(struct net_device *dev, struct ethtool_cmd *cmd) | 107 | static int stmmac_ethtool_getsettings(struct net_device *dev, |
108 | struct ethtool_cmd *cmd) | ||
108 | { | 109 | { |
109 | struct stmmac_priv *priv = netdev_priv(dev); | 110 | struct stmmac_priv *priv = netdev_priv(dev); |
110 | struct phy_device *phy = priv->phydev; | 111 | struct phy_device *phy = priv->phydev; |
@@ -126,7 +127,8 @@ int stmmac_ethtool_getsettings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
126 | return rc; | 127 | return rc; |
127 | } | 128 | } |
128 | 129 | ||
129 | int stmmac_ethtool_setsettings(struct net_device *dev, struct ethtool_cmd *cmd) | 130 | static int stmmac_ethtool_setsettings(struct net_device *dev, |
131 | struct ethtool_cmd *cmd) | ||
130 | { | 132 | { |
131 | struct stmmac_priv *priv = netdev_priv(dev); | 133 | struct stmmac_priv *priv = netdev_priv(dev); |
132 | struct phy_device *phy = priv->phydev; | 134 | struct phy_device *phy = priv->phydev; |
@@ -139,32 +141,32 @@ int stmmac_ethtool_setsettings(struct net_device *dev, struct ethtool_cmd *cmd) | |||
139 | return rc; | 141 | return rc; |
140 | } | 142 | } |
141 | 143 | ||
142 | u32 stmmac_ethtool_getmsglevel(struct net_device *dev) | 144 | static u32 stmmac_ethtool_getmsglevel(struct net_device *dev) |
143 | { | 145 | { |
144 | struct stmmac_priv *priv = netdev_priv(dev); | 146 | struct stmmac_priv *priv = netdev_priv(dev); |
145 | return priv->msg_enable; | 147 | return priv->msg_enable; |
146 | } | 148 | } |
147 | 149 | ||
148 | void stmmac_ethtool_setmsglevel(struct net_device *dev, u32 level) | 150 | static void stmmac_ethtool_setmsglevel(struct net_device *dev, u32 level) |
149 | { | 151 | { |
150 | struct stmmac_priv *priv = netdev_priv(dev); | 152 | struct stmmac_priv *priv = netdev_priv(dev); |
151 | priv->msg_enable = level; | 153 | priv->msg_enable = level; |
152 | 154 | ||
153 | } | 155 | } |
154 | 156 | ||
155 | int stmmac_check_if_running(struct net_device *dev) | 157 | static int stmmac_check_if_running(struct net_device *dev) |
156 | { | 158 | { |
157 | if (!netif_running(dev)) | 159 | if (!netif_running(dev)) |
158 | return -EBUSY; | 160 | return -EBUSY; |
159 | return 0; | 161 | return 0; |
160 | } | 162 | } |
161 | 163 | ||
162 | int stmmac_ethtool_get_regs_len(struct net_device *dev) | 164 | static int stmmac_ethtool_get_regs_len(struct net_device *dev) |
163 | { | 165 | { |
164 | return REG_SPACE_SIZE; | 166 | return REG_SPACE_SIZE; |
165 | } | 167 | } |
166 | 168 | ||
167 | void stmmac_ethtool_gregs(struct net_device *dev, | 169 | static void stmmac_ethtool_gregs(struct net_device *dev, |
168 | struct ethtool_regs *regs, void *space) | 170 | struct ethtool_regs *regs, void *space) |
169 | { | 171 | { |
170 | int i; | 172 | int i; |
@@ -195,7 +197,7 @@ void stmmac_ethtool_gregs(struct net_device *dev, | |||
195 | } | 197 | } |
196 | } | 198 | } |
197 | 199 | ||
198 | int stmmac_ethtool_set_tx_csum(struct net_device *netdev, u32 data) | 200 | static int stmmac_ethtool_set_tx_csum(struct net_device *netdev, u32 data) |
199 | { | 201 | { |
200 | if (data) | 202 | if (data) |
201 | netdev->features |= NETIF_F_HW_CSUM; | 203 | netdev->features |= NETIF_F_HW_CSUM; |
@@ -205,7 +207,7 @@ int stmmac_ethtool_set_tx_csum(struct net_device *netdev, u32 data) | |||
205 | return 0; | 207 | return 0; |
206 | } | 208 | } |
207 | 209 | ||
208 | u32 stmmac_ethtool_get_rx_csum(struct net_device *dev) | 210 | static u32 stmmac_ethtool_get_rx_csum(struct net_device *dev) |
209 | { | 211 | { |
210 | struct stmmac_priv *priv = netdev_priv(dev); | 212 | struct stmmac_priv *priv = netdev_priv(dev); |
211 | 213 | ||