r8152: replace void * with struct r8152 *
authorhayeswang <hayeswang@realtek.com>
Fri, 16 Aug 2013 08:09:33 +0000 (16:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 07:08:21 +0000 (00:08 -0700)
Change the type of contex of tx_agg and rx_agg from void * to
staruc r8152 *.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index c13662b31da10de18c7fd6154109ed45d0243aad..a18f02dafaaaecef48e6ce97022ebfc6d7e54379 100644 (file)
@@ -329,10 +329,12 @@ struct tx_desc {
 #define IPV6_CS                        (1 << 28) /* Calculate IPv6 checksum */
 };
 
+struct r8152;
+
 struct rx_agg {
        struct list_head list;
        struct urb *urb;
-       void *context;
+       struct r8152 *context;
        void *buffer;
        void *head;
 };
@@ -340,7 +342,7 @@ struct rx_agg {
 struct tx_agg {
        struct list_head list;
        struct urb *urb;
-       void *context;
+       struct r8152 *context;
        void *buffer;
        void *head;
        u32 skb_num;