提交 2c07c329 编写于 作者: O oliver@schinagl.nl 提交者: Joe Hershberger

net: cosmetic: Define ethernet name length

There are various places where the ethernet device name is defined to
several different sizes. Lets add a define and start using it.
Signed-off-by: NOlliver Schinagl <oliver@schinagl.nl>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 9f455bcb
......@@ -168,7 +168,8 @@ void eth_halt_state_only(void); /* Set passive state */
#ifndef CONFIG_DM_ETH
struct eth_device {
char name[16];
#define ETH_NAME_LEN 16
char name[ETH_NAME_LEN];
unsigned char enetaddr[ARP_HLEN];
phys_addr_t iobase;
int state;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册