mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
net/miiphy/serial: drop duplicate "NAMESIZE" define
A few subsystems are using the same define "NAMESIZE". This has been working so far because they define it to the same number. However, I want to change the size of eth_device's NAMESIZE, so rather than tweak the define names, simply drop references to it. Almost no one does, and the handful that do can easily be changed to a sizeof(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Wolfgang Denk
parent
2b22460956
commit
f6add132f6
@@ -67,8 +67,6 @@ typedef void rxhand_icmp_f(unsigned type, unsigned code, unsigned dport,
|
||||
*/
|
||||
typedef void thand_f(void);
|
||||
|
||||
#define NAMESIZE 16
|
||||
|
||||
enum eth_state_t {
|
||||
ETH_STATE_INIT,
|
||||
ETH_STATE_PASSIVE,
|
||||
@@ -76,7 +74,7 @@ enum eth_state_t {
|
||||
};
|
||||
|
||||
struct eth_device {
|
||||
char name[NAMESIZE];
|
||||
char name[16];
|
||||
unsigned char enetaddr[6];
|
||||
int iobase;
|
||||
int state;
|
||||
|
Reference in New Issue
Block a user