diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-06-23 14:50:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-27 10:40:57 -0400 |
commit | 37688e3f53c327523caeccdb1ffb3830b4aea9a7 (patch) | |
tree | 7c6467d44f22003b8fc5db8dda45888b4cd7c2ae /drivers/net/phy/swphy.h | |
parent | 68888ce075a5e77f0df659b128a7cb7c597a73cb (diff) |
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.h | 2 |
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 |