projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f455bc
)
net: cosmetic: Define ethernet name length
author
oliver@schinagl.nl
<oliver@schinagl.nl>
Fri, 25 Nov 2016 15:30:21 +0000
(16:30 +0100)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Tue, 7 Feb 2017 16:54:32 +0000
(10:54 -0600)
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>
include/net.h
patch
|
blob
|
history
diff --git
a/include/net.h
b/include/net.h
index c3bfb6378203ee3e48316b872cc8feeec8cad03f..ed5259a80738214ed60a44d2ddf6ba51ac5565c4 100644
(file)
--- 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;