diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-12-11 15:23:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-11 15:23:15 -0500 |
commit | 8a10a54656aff69de3530efa793cbec8d2b51d02 (patch) | |
tree | 5c9937dd20f50b1f386ac48af7f30a2cc7b351a3 /drivers/staging/rt2860/rt_main_dev.c | |
parent | 51126deb201c59cc8cdc4873e3d130d6bc60513d (diff) |
Staging: rt28x0: remove typedefs (part two)
Remove typedefs from rt_linux.h and rtmp_usb.h.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rt2860/rt_main_dev.c')
-rw-r--r-- | drivers/staging/rt2860/rt_main_dev.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/rt2860/rt_main_dev.c b/drivers/staging/rt2860/rt_main_dev.c index 21313ee596c..347279912e4 100644 --- a/drivers/staging/rt2860/rt_main_dev.c +++ b/drivers/staging/rt2860/rt_main_dev.c | |||
@@ -208,7 +208,7 @@ Note: | |||
208 | (3) BA Reordering: ba_reordering_resource_release() | 208 | (3) BA Reordering: ba_reordering_resource_release() |
209 | ======================================================================== | 209 | ======================================================================== |
210 | */ | 210 | */ |
211 | int rt28xx_close(IN PNET_DEV dev) | 211 | int rt28xx_close(struct net_device *dev) |
212 | { | 212 | { |
213 | struct net_device *net_dev = (struct net_device *)dev; | 213 | struct net_device *net_dev = (struct net_device *)dev; |
214 | RTMP_ADAPTER *pAd = NULL; | 214 | RTMP_ADAPTER *pAd = NULL; |
@@ -378,12 +378,12 @@ Return Value: | |||
378 | Note: | 378 | Note: |
379 | ======================================================================== | 379 | ======================================================================== |
380 | */ | 380 | */ |
381 | int rt28xx_open(IN PNET_DEV dev) | 381 | int rt28xx_open(struct net_device *dev) |
382 | { | 382 | { |
383 | struct net_device *net_dev = (struct net_device *)dev; | 383 | struct net_device *net_dev = (struct net_device *)dev; |
384 | PRTMP_ADAPTER pAd = NULL; | 384 | PRTMP_ADAPTER pAd = NULL; |
385 | int retval = 0; | 385 | int retval = 0; |
386 | /*POS_COOKIE pObj; */ | 386 | /*struct os_cookie *pObj; */ |
387 | 387 | ||
388 | GET_PAD_FROM_NET_DEV(pAd, net_dev); | 388 | GET_PAD_FROM_NET_DEV(pAd, net_dev); |
389 | 389 | ||
@@ -459,7 +459,7 @@ static const struct net_device_ops rt2860_netdev_ops = { | |||
459 | .ndo_start_xmit = rt28xx_send_packets, | 459 | .ndo_start_xmit = rt28xx_send_packets, |
460 | }; | 460 | }; |
461 | 461 | ||
462 | PNET_DEV RtmpPhyNetDevInit(IN RTMP_ADAPTER * pAd, | 462 | struct net_device *RtmpPhyNetDevInit(IN RTMP_ADAPTER * pAd, |
463 | IN RTMP_OS_NETDEV_OP_HOOK * pNetDevHook) | 463 | IN RTMP_OS_NETDEV_OP_HOOK * pNetDevHook) |
464 | { | 464 | { |
465 | struct net_device *net_dev = NULL; | 465 | struct net_device *net_dev = NULL; |
@@ -511,7 +511,7 @@ int rt28xx_packet_xmit(struct sk_buff *skb) | |||
511 | struct net_device *net_dev = skb->dev; | 511 | struct net_device *net_dev = skb->dev; |
512 | PRTMP_ADAPTER pAd = NULL; | 512 | PRTMP_ADAPTER pAd = NULL; |
513 | int status = NETDEV_TX_OK; | 513 | int status = NETDEV_TX_OK; |
514 | PNDIS_PACKET pPacket = (PNDIS_PACKET) skb; | 514 | void *pPacket = (void *)skb; |
515 | 515 | ||
516 | GET_PAD_FROM_NET_DEV(pAd, net_dev); | 516 | GET_PAD_FROM_NET_DEV(pAd, net_dev); |
517 | 517 | ||
@@ -534,7 +534,7 @@ int rt28xx_packet_xmit(struct sk_buff *skb) | |||
534 | } | 534 | } |
535 | 535 | ||
536 | RTMP_SET_PACKET_5VT(pPacket, 0); | 536 | RTMP_SET_PACKET_5VT(pPacket, 0); |
537 | STASendPackets((NDIS_HANDLE) pAd, (PPNDIS_PACKET) & pPacket, 1); | 537 | STASendPackets((void *)pAd, (void **)& pPacket, 1); |
538 | 538 | ||
539 | status = NETDEV_TX_OK; | 539 | status = NETDEV_TX_OK; |
540 | done: | 540 | done: |
@@ -566,7 +566,7 @@ static int rt28xx_send_packets(IN struct sk_buff *skb_p, | |||
566 | GET_PAD_FROM_NET_DEV(pAd, net_dev); | 566 | GET_PAD_FROM_NET_DEV(pAd, net_dev); |
567 | 567 | ||
568 | if (!(net_dev->flags & IFF_UP)) { | 568 | if (!(net_dev->flags & IFF_UP)) { |
569 | RELEASE_NDIS_PACKET(pAd, (PNDIS_PACKET) skb_p, | 569 | RELEASE_NDIS_PACKET(pAd, (void *)skb_p, |
570 | NDIS_STATUS_FAILURE); | 570 | NDIS_STATUS_FAILURE); |
571 | return NETDEV_TX_OK; | 571 | return NETDEV_TX_OK; |
572 | } | 572 | } |
@@ -690,7 +690,7 @@ static struct net_device_stats *RT28xx_get_ether_stats(IN struct net_device | |||
690 | return NULL; | 690 | return NULL; |
691 | } | 691 | } |
692 | 692 | ||
693 | BOOLEAN RtmpPhyNetDevExit(IN RTMP_ADAPTER * pAd, IN PNET_DEV net_dev) | 693 | BOOLEAN RtmpPhyNetDevExit(IN RTMP_ADAPTER * pAd, struct net_device *net_dev) |
694 | { | 694 | { |
695 | 695 | ||
696 | /* Unregister network device */ | 696 | /* Unregister network device */ |