mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
9f455bcb34
commit
2c07c32994
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue