linux/arch/mips/ar7
Alexander Clouter d16f7093b6 MIPS: AR7: rewrite of cpmac_get_mac()
Shamelessly stealing wisdom from pasemi_mac.c, I found char2hex() could
be replaced with a single call to sscanf(), looks cleaner to me at
least.  The result is 100 bytes trimmed off the size of a compiled
cpmac_get_mac() and as an extra bonus it grumbles and gracefully fails
over to using random_ether_addr() when an attempt to parse an invalid
MAC address is made.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
To: linux-mips@linux-mips.org
Cc: florian@openwrt.org
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-08-05 13:26:02 +01:00
..
clock.c MIPS: AR7: Implement clock API 2010-02-27 12:53:16 +01:00
gpio.c MIPS: AR7: Whitespace hacking 2010-02-27 12:53:21 +01:00
irq.c
Makefile MIPS: Introduce support for Platform definitions 2010-08-05 13:25:45 +01:00
memory.c MIPS: AR7: Whitespace hacking 2010-02-27 12:53:21 +01:00
Platform MIPS: Introduce support for Platform definitions 2010-08-05 13:25:45 +01:00
platform.c MIPS: AR7: rewrite of cpmac_get_mac() 2010-08-05 13:26:02 +01:00
prom.c MIPS: AR7: Whitespace hacking 2010-02-27 12:53:21 +01:00
setup.c MIPS: AR7: Whitespace hacking 2010-02-27 12:53:21 +01:00
time.c MIPS: AR7: Implement clock API 2010-02-27 12:53:16 +01:00