summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoroliver@schinagl.nl <oliver@schinagl.nl>2016-11-25 16:30:21 +0100
committerJoe Hershberger <joe.hershberger@ni.com>2017-02-07 10:54:32 -0600
commit2c07c3299467e2313d6764ed28db62e8fcc77ccf (patch)
treec49471d170cb13e2310ba83e85b8df5359b86ec8 /include
parent9f455bcb34fcab31b0eb8eec5702105c8d4bde18 (diff)
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')
-rw-r--r--include/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index c3bfb63782..ed5259a807 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;