net: stmmac: unify registers dumps methods
The stmmac driver have two methods for registers dumps: via ethtool and
at init (if NETIF_MSG_HW is enabled).
It is better to keep only one method, ethtool, since the other was ugly.
This patch convert all dump_regs() function from "printing regs" to
"fill the reg_space used by ethtool".
Signed-off-by: Corentin Labbe <email@example.com>
Acked-by: Giuseppe Cavallaro <firstname.lastname@example.org>
Signed-off-by: David S. Miller <email@example.com>
9 files changed