diff options
author | Vivien Didelot <[email protected]> | 2016-06-20 13:14:02 -0400 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-06-21 03:58:29 -0400 |
commit | b7e66a5fad73cb0f118471e6ca8aeed3447915dc (patch) | |
tree | 37c7632161e3ad9f703785f7985576b8004c1a3f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 1d35f0b2c3fcc8a0c1fd93aba02520c940c0b855 (diff) |
net: dsa: mv88e6xxx: add switch register helpers
The mixed assignments, allocations and registrations in the probe code
make it hard to follow the logic and figure out what is DSA or chip
specific.
Extract the struct dsa_switch related code in a simple
mv88e6xxx_register_switch helper function.
For symmetry in the code, add a mv88e6xxx_unregister_switch function.
Signed-off-by: Vivien Didelot <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions