diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-08 23:52:07 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-09 21:44:50 +0100 |
commit | ab3d408d3f40f939d46a32b1c24aa2833a13b846 (patch) | |
tree | d63140993898647a7db28c2b635606dc1e7d8bfd /drivers/net/dsa/mv88e6060.h | |
parent | net: dsa: bcm_sf2: Declare our own dsa_switch_ops (diff) | |
download | linux-ab3d408d3f40f939d46a32b1c24aa2833a13b846.tar.xz linux-ab3d408d3f40f939d46a32b1c24aa2833a13b846.zip |
net: dsa: Encapsulate legacy switch drivers into dsa_switch_driver
In preparation for making struct dsa_switch_ops const, encapsulate it
within a dsa_switch_driver which has a list pointer and a pointer to
dsa_switch_ops. This allows us to take the list_head pointer out of
dsa_switch_ops, which is written to by {un,}register_switch_driver.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6060.h')
0 files changed, 0 insertions, 0 deletions