diff options
author | oliver@schinagl.nl <oliver@schinagl.nl> | 2016-11-25 16:30:21 +0100 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2017-02-07 10:54:32 -0600 |
commit | 2c07c3299467e2313d6764ed28db62e8fcc77ccf (patch) | |
tree | c49471d170cb13e2310ba83e85b8df5359b86ec8 /include/net.h | |
parent | 9f455bcb34fcab31b0eb8eec5702105c8d4bde18 (diff) | |
download | u-boot-2c07c3299467e2313d6764ed28db62e8fcc77ccf.zip u-boot-2c07c3299467e2313d6764ed28db62e8fcc77ccf.tar.gz u-boot-2c07c3299467e2313d6764ed28db62e8fcc77ccf.tar.bz2 |
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>
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h index c3bfb63..ed5259a 100644 --- a/include/net.h +++ b/include/net.h @@ -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; |