diff options
| author | Egil Hjelmeland <privat@egil-hjelmeland.no> | 2017-08-05 14:05:50 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-08-08 00:18:01 +0300 |
| commit | 0a967b4a8e4d5e4e5e50e799bb9d8aa4218c6b2f (patch) | |
| tree | 5812c1a71068c828e4074c5dd3e853bc5442afb3 /include/linux/debugobjects.h | |
| parent | 9c84258ed68a1dc3c58a16741747a19df9256c5e (diff) | |
| download | linux-0a967b4a8e4d5e4e5e50e799bb9d8aa4218c6b2f.tar.xz | |
net: dsa: lan9303: refactor lan9303_get_ethtool_stats
In lan9303_get_ethtool_stats: Get rid of 0x400 constant magic
by using new lan9303_read_switch_reg() inside loop.
Reduced scope of two variables.
Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
