diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-11-15 18:05:47 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:04:46 -0500 |
commit | 1007832103d016d1563fab71d4cf2b057a0bcceb (patch) | |
tree | 3b5080b01bee6e1f98cc9489382c534e963ac748 /drivers/net/wireless/libertas/ethtool.c | |
parent | 9a62f73b1a3bbd35a6f84fcd6636e672b09981ec (diff) |
libertas: move to uniform lbs_/LBS_ namespace
This patch unifies the namespace of variables, functions defines
and structures. It does:
- rename libertas_XXX to lbs_XXX
- rename LIBERTAS_XXX to lbs_XXX
- rename wlan_XXX to lbs_XXX
- rename WLAN_XXX to LBS_XXX (but only those that were
defined in libertas-local *.h files, e.g. not defines
from net/ieee80211.h)
While passing, I fixed some checkpatch.pl errors too.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/ethtool.c')
-rw-r--r-- | drivers/net/wireless/libertas/ethtool.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/drivers/net/wireless/libertas/ethtool.c b/drivers/net/wireless/libertas/ethtool.c index 3dae15211b6a..8121399f4b90 100644 --- a/drivers/net/wireless/libertas/ethtool.c +++ b/drivers/net/wireless/libertas/ethtool.c | |||
@@ -19,35 +19,35 @@ static const char * mesh_stat_strings[]= { | |||
19 | "tx_failed_cnt" | 19 | "tx_failed_cnt" |
20 | }; | 20 | }; |
21 | 21 | ||
22 | static void libertas_ethtool_get_drvinfo(struct net_device *dev, | 22 | static void lbs_ethtool_get_drvinfo(struct net_device *dev, |
23 | struct ethtool_drvinfo *info) | 23 | struct ethtool_drvinfo *info) |
24 | { | 24 | { |
25 | wlan_private *priv = (wlan_private *) dev->priv; | 25 | lbs_private *priv = (lbs_private *) dev->priv; |
26 | char fwver[32]; | 26 | char fwver[32]; |
27 | 27 | ||
28 | libertas_get_fwversion(priv->adapter, fwver, sizeof(fwver) - 1); | 28 | lbs_get_fwversion(priv->adapter, fwver, sizeof(fwver) - 1); |
29 | 29 | ||
30 | strcpy(info->driver, "libertas"); | 30 | strcpy(info->driver, "libertas"); |
31 | strcpy(info->version, libertas_driver_version); | 31 | strcpy(info->version, lbs_driver_version); |
32 | strcpy(info->fw_version, fwver); | 32 | strcpy(info->fw_version, fwver); |
33 | } | 33 | } |
34 | 34 | ||
35 | /* All 8388 parts have 16KiB EEPROM size at the time of writing. | 35 | /* All 8388 parts have 16KiB EEPROM size at the time of writing. |
36 | * In case that changes this needs fixing. | 36 | * In case that changes this needs fixing. |
37 | */ | 37 | */ |
38 | #define LIBERTAS_EEPROM_LEN 16384 | 38 | #define LBS_EEPROM_LEN 16384 |
39 | 39 | ||
40 | static int libertas_ethtool_get_eeprom_len(struct net_device *dev) | 40 | static int lbs_ethtool_get_eeprom_len(struct net_device *dev) |
41 | { | 41 | { |
42 | return LIBERTAS_EEPROM_LEN; | 42 | return LBS_EEPROM_LEN; |
43 | } | 43 | } |
44 | 44 | ||
45 | static int libertas_ethtool_get_eeprom(struct net_device *dev, | 45 | static int lbs_ethtool_get_eeprom(struct net_device *dev, |
46 | struct ethtool_eeprom *eeprom, u8 * bytes) | 46 | struct ethtool_eeprom *eeprom, u8 * bytes) |
47 | { | 47 | { |
48 | wlan_private *priv = (wlan_private *) dev->priv; | 48 | lbs_private *priv = (lbs_private *) dev->priv; |
49 | wlan_adapter *adapter = priv->adapter; | 49 | lbs_adapter *adapter = priv->adapter; |
50 | struct wlan_ioctl_regrdwr regctrl; | 50 | struct lbs_ioctl_regrdwr regctrl; |
51 | char *ptr; | 51 | char *ptr; |
52 | int ret; | 52 | int ret; |
53 | 53 | ||
@@ -55,7 +55,7 @@ static int libertas_ethtool_get_eeprom(struct net_device *dev, | |||
55 | regctrl.offset = eeprom->offset; | 55 | regctrl.offset = eeprom->offset; |
56 | regctrl.NOB = eeprom->len; | 56 | regctrl.NOB = eeprom->len; |
57 | 57 | ||
58 | if (eeprom->offset + eeprom->len > LIBERTAS_EEPROM_LEN) | 58 | if (eeprom->offset + eeprom->len > LBS_EEPROM_LEN) |
59 | return -EINVAL; | 59 | return -EINVAL; |
60 | 60 | ||
61 | // mutex_lock(&priv->mutex); | 61 | // mutex_lock(&priv->mutex); |
@@ -70,7 +70,7 @@ static int libertas_ethtool_get_eeprom(struct net_device *dev, | |||
70 | lbs_deb_ethtool("action:%d offset: %x NOB: %02x\n", | 70 | lbs_deb_ethtool("action:%d offset: %x NOB: %02x\n", |
71 | regctrl.action, regctrl.offset, regctrl.NOB); | 71 | regctrl.action, regctrl.offset, regctrl.NOB); |
72 | 72 | ||
73 | ret = libertas_prepare_and_send_command(priv, | 73 | ret = lbs_prepare_and_send_command(priv, |
74 | CMD_802_11_EEPROM_ACCESS, | 74 | CMD_802_11_EEPROM_ACCESS, |
75 | regctrl.action, | 75 | regctrl.action, |
76 | CMD_OPTION_WAITFORRSP, 0, | 76 | CMD_OPTION_WAITFORRSP, 0, |
@@ -87,7 +87,7 @@ static int libertas_ethtool_get_eeprom(struct net_device *dev, | |||
87 | ptr = (char *)adapter->prdeeprom; | 87 | ptr = (char *)adapter->prdeeprom; |
88 | 88 | ||
89 | /* skip the command header, but include the "value" u32 variable */ | 89 | /* skip the command header, but include the "value" u32 variable */ |
90 | ptr = ptr + sizeof(struct wlan_ioctl_regrdwr) - 4; | 90 | ptr = ptr + sizeof(struct lbs_ioctl_regrdwr) - 4; |
91 | 91 | ||
92 | /* | 92 | /* |
93 | * Return the result back to the user | 93 | * Return the result back to the user |
@@ -105,17 +105,17 @@ done: | |||
105 | return ret; | 105 | return ret; |
106 | } | 106 | } |
107 | 107 | ||
108 | static void libertas_ethtool_get_stats(struct net_device * dev, | 108 | static void lbs_ethtool_get_stats(struct net_device * dev, |
109 | struct ethtool_stats * stats, u64 * data) | 109 | struct ethtool_stats * stats, u64 * data) |
110 | { | 110 | { |
111 | wlan_private *priv = dev->priv; | 111 | lbs_private *priv = dev->priv; |
112 | struct cmd_ds_mesh_access mesh_access; | 112 | struct cmd_ds_mesh_access mesh_access; |
113 | int ret; | 113 | int ret; |
114 | 114 | ||
115 | lbs_deb_enter(LBS_DEB_ETHTOOL); | 115 | lbs_deb_enter(LBS_DEB_ETHTOOL); |
116 | 116 | ||
117 | /* Get Mesh Statistics */ | 117 | /* Get Mesh Statistics */ |
118 | ret = libertas_prepare_and_send_command(priv, | 118 | ret = lbs_prepare_and_send_command(priv, |
119 | CMD_MESH_ACCESS, CMD_ACT_MESH_GET_STATS, | 119 | CMD_MESH_ACCESS, CMD_ACT_MESH_GET_STATS, |
120 | CMD_OPTION_WAITFORRSP, 0, &mesh_access); | 120 | CMD_OPTION_WAITFORRSP, 0, &mesh_access); |
121 | 121 | ||
@@ -143,7 +143,7 @@ static void libertas_ethtool_get_stats(struct net_device * dev, | |||
143 | lbs_deb_enter(LBS_DEB_ETHTOOL); | 143 | lbs_deb_enter(LBS_DEB_ETHTOOL); |
144 | } | 144 | } |
145 | 145 | ||
146 | static int libertas_ethtool_get_sset_count(struct net_device * dev, int sset) | 146 | static int lbs_ethtool_get_sset_count(struct net_device * dev, int sset) |
147 | { | 147 | { |
148 | switch (sset) { | 148 | switch (sset) { |
149 | case ETH_SS_STATS: | 149 | case ETH_SS_STATS: |
@@ -153,7 +153,7 @@ static int libertas_ethtool_get_sset_count(struct net_device * dev, int sset) | |||
153 | } | 153 | } |
154 | } | 154 | } |
155 | 155 | ||
156 | static void libertas_ethtool_get_strings (struct net_device * dev, | 156 | static void lbs_ethtool_get_strings(struct net_device *dev, |
157 | u32 stringset, | 157 | u32 stringset, |
158 | u8 * s) | 158 | u8 * s) |
159 | { | 159 | { |
@@ -173,12 +173,12 @@ static void libertas_ethtool_get_strings (struct net_device * dev, | |||
173 | lbs_deb_enter(LBS_DEB_ETHTOOL); | 173 | lbs_deb_enter(LBS_DEB_ETHTOOL); |
174 | } | 174 | } |
175 | 175 | ||
176 | struct ethtool_ops libertas_ethtool_ops = { | 176 | struct ethtool_ops lbs_ethtool_ops = { |
177 | .get_drvinfo = libertas_ethtool_get_drvinfo, | 177 | .get_drvinfo = lbs_ethtool_get_drvinfo, |
178 | .get_eeprom = libertas_ethtool_get_eeprom, | 178 | .get_eeprom = lbs_ethtool_get_eeprom, |
179 | .get_eeprom_len = libertas_ethtool_get_eeprom_len, | 179 | .get_eeprom_len = lbs_ethtool_get_eeprom_len, |
180 | .get_sset_count = libertas_ethtool_get_sset_count, | 180 | .get_sset_count = lbs_ethtool_get_sset_count, |
181 | .get_ethtool_stats = libertas_ethtool_get_stats, | 181 | .get_ethtool_stats = lbs_ethtool_get_stats, |
182 | .get_strings = libertas_ethtool_get_strings, | 182 | .get_strings = lbs_ethtool_get_strings, |
183 | }; | 183 | }; |
184 | 184 | ||