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:
Mike Frysinger
2011-11-10 14:11:04 +00:00
committed by Wolfgang Denk
parent 2b22460956
commit f6add132f6
12 changed files with 13 additions and 16 deletions

View File

@@ -221,7 +221,7 @@ void mv6436x_eth_initialize (bd_t * bis)
return;
}
/* must be less than NAMESIZE (16) */
/* must be less than sizeof(dev->name) */
sprintf (dev->name, "mv_enet%d", devnum);
#ifdef DEBUG

View File

@@ -221,7 +221,7 @@ void mv6446x_eth_initialize (bd_t * bis)
return;
}
/* must be less than NAMESIZE (16) */
/* must be less than sizeof(dev->name) */
sprintf (dev->name, "mv_enet%d", devnum);
#ifdef DEBUG