mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-16 23:45:31 +08:00
r8152: replace void * with struct r8152 *
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>
This commit is contained in:
parent
197d439eec
commit
dff4e8ad88
@ -329,10 +329,12 @@ struct tx_desc {
|
|||||||
#define IPV6_CS (1 << 28) /* Calculate IPv6 checksum */
|
#define IPV6_CS (1 << 28) /* Calculate IPv6 checksum */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct r8152;
|
||||||
|
|
||||||
struct rx_agg {
|
struct rx_agg {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
struct urb *urb;
|
struct urb *urb;
|
||||||
void *context;
|
struct r8152 *context;
|
||||||
void *buffer;
|
void *buffer;
|
||||||
void *head;
|
void *head;
|
||||||
};
|
};
|
||||||
@ -340,7 +342,7 @@ struct rx_agg {
|
|||||||
struct tx_agg {
|
struct tx_agg {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
struct urb *urb;
|
struct urb *urb;
|
||||||
void *context;
|
struct r8152 *context;
|
||||||
void *buffer;
|
void *buffer;
|
||||||
void *head;
|
void *head;
|
||||||
u32 skb_num;
|
u32 skb_num;
|
||||||
|
Loading…
Reference in New Issue
Block a user