net: eth: add name to struct eth_device
Using dev_name often is not a good idea since it's a statically
allocated string which gets overwritten by later calls to dev_name.
Add a devname string to struct eth_device to have the name available
for later use.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8b3244d commit 5ed70d2fa244e9d680cb2f69153fcb2ea52ea57a
@Sascha Hauer Sascha Hauer authored on 18 May 2016
Showing 2 changed files
View
include/net.h
View
net/eth.c