diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2008-03-16 18:21:54 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-26 00:18:43 -0400 |
commit | eca1ad82bda0293339e1f8439dc9c8dba25ff088 (patch) | |
tree | d1c44284a6ad57dd8ae141644011a903f01fccd8 /drivers/net/usb | |
parent | 05bd831fcdf4ce08ae5b832cfe03a303245fb135 (diff) |
misc drivers/net annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/dm9601.c | 10 | ||||
-rw-r--r-- | drivers/net/usb/rndis_host.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c index 4b131a6c6b70..81ccdfaecc58 100644 --- a/drivers/net/usb/dm9601.c +++ b/drivers/net/usb/dm9601.c | |||
@@ -155,7 +155,7 @@ static void dm_write_reg_async(struct usbnet *dev, u8 reg, u8 value) | |||
155 | dm_write_async_helper(dev, reg, value, 0, NULL); | 155 | dm_write_async_helper(dev, reg, value, 0, NULL); |
156 | } | 156 | } |
157 | 157 | ||
158 | static int dm_read_shared_word(struct usbnet *dev, int phy, u8 reg, u16 *value) | 158 | static int dm_read_shared_word(struct usbnet *dev, int phy, u8 reg, __le16 *value) |
159 | { | 159 | { |
160 | int ret, i; | 160 | int ret, i; |
161 | 161 | ||
@@ -194,7 +194,7 @@ static int dm_read_shared_word(struct usbnet *dev, int phy, u8 reg, u16 *value) | |||
194 | return ret; | 194 | return ret; |
195 | } | 195 | } |
196 | 196 | ||
197 | static int dm_write_shared_word(struct usbnet *dev, int phy, u8 reg, u16 value) | 197 | static int dm_write_shared_word(struct usbnet *dev, int phy, u8 reg, __le16 value) |
198 | { | 198 | { |
199 | int ret, i; | 199 | int ret, i; |
200 | 200 | ||
@@ -249,7 +249,7 @@ static int dm9601_get_eeprom(struct net_device *net, | |||
249 | struct ethtool_eeprom *eeprom, u8 * data) | 249 | struct ethtool_eeprom *eeprom, u8 * data) |
250 | { | 250 | { |
251 | struct usbnet *dev = netdev_priv(net); | 251 | struct usbnet *dev = netdev_priv(net); |
252 | u16 *ebuf = (u16 *) data; | 252 | __le16 *ebuf = (__le16 *) data; |
253 | int i; | 253 | int i; |
254 | 254 | ||
255 | /* access is 16bit */ | 255 | /* access is 16bit */ |
@@ -268,7 +268,7 @@ static int dm9601_mdio_read(struct net_device *netdev, int phy_id, int loc) | |||
268 | { | 268 | { |
269 | struct usbnet *dev = netdev_priv(netdev); | 269 | struct usbnet *dev = netdev_priv(netdev); |
270 | 270 | ||
271 | u16 res; | 271 | __le16 res; |
272 | 272 | ||
273 | if (phy_id) { | 273 | if (phy_id) { |
274 | devdbg(dev, "Only internal phy supported"); | 274 | devdbg(dev, "Only internal phy supported"); |
@@ -288,7 +288,7 @@ static void dm9601_mdio_write(struct net_device *netdev, int phy_id, int loc, | |||
288 | int val) | 288 | int val) |
289 | { | 289 | { |
290 | struct usbnet *dev = netdev_priv(netdev); | 290 | struct usbnet *dev = netdev_priv(netdev); |
291 | u16 res = cpu_to_le16(val); | 291 | __le16 res = cpu_to_le16(val); |
292 | 292 | ||
293 | if (phy_id) { | 293 | if (phy_id) { |
294 | devdbg(dev, "Only internal phy supported"); | 294 | devdbg(dev, "Only internal phy supported"); |
diff --git a/drivers/net/usb/rndis_host.c b/drivers/net/usb/rndis_host.c index 727547a28992..8b859f3e1c3b 100644 --- a/drivers/net/usb/rndis_host.c +++ b/drivers/net/usb/rndis_host.c | |||
@@ -218,7 +218,7 @@ EXPORT_SYMBOL_GPL(rndis_command); | |||
218 | * ActiveSync 4.1 Windows driver. | 218 | * ActiveSync 4.1 Windows driver. |
219 | */ | 219 | */ |
220 | static int rndis_query(struct usbnet *dev, struct usb_interface *intf, | 220 | static int rndis_query(struct usbnet *dev, struct usb_interface *intf, |
221 | void *buf, u32 oid, u32 in_len, | 221 | void *buf, __le32 oid, u32 in_len, |
222 | void **reply, int *reply_len) | 222 | void **reply, int *reply_len) |
223 | { | 223 | { |
224 | int retval; | 224 | int retval; |