summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/swphy.h
diff options
context:
space:
mode:
authorRussell King2016-06-23 15:50:20 +0200
committerDavid S. Miller2016-06-27 16:40:57 +0200
commit37688e3f53c327523caeccdb1ffb3830b4aea9a7 (patch)
tree7c6467d44f22003b8fc5db8dda45888b4cd7c2ae /drivers/net/phy/swphy.h
parentphy: separate swphy state validation from register generation (diff)
downloadkernel-qcow2-linux-37688e3f53c327523caeccdb1ffb3830b4aea9a7.tar.gz
kernel-qcow2-linux-37688e3f53c327523caeccdb1ffb3830b4aea9a7.tar.xz
kernel-qcow2-linux-37688e3f53c327523caeccdb1ffb3830b4aea9a7.zip
phy: generate swphy registers on the fly
Generate software phy registers as and when requested, rather than duplicating the state in fixed_phy. This allows us to eliminate the duplicate storage of of the same data, which is only different in format. As fixed_phy_update_regs() no longer updates register state, rename it to fixed_phy_update(). Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/swphy.h')
-rw-r--r--drivers/net/phy/swphy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/swphy.h b/drivers/net/phy/swphy.h
index 33d2e061896e..2f09ac324e18 100644
--- a/drivers/net/phy/swphy.h
+++ b/drivers/net/phy/swphy.h
@@ -4,6 +4,6 @@
struct fixed_phy_status;
int swphy_validate_state(const struct fixed_phy_status *state);
-void swphy_update_regs(u16 *regs, const struct fixed_phy_status *state);
+int swphy_read_reg(int reg, const struct fixed_phy_status *state);
#endif