diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-06-23 14:50:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-27 10:40:57 -0400 |
commit | 68888ce075a5e77f0df659b128a7cb7c597a73cb (patch) | |
tree | ecf50f5ecda7b35b709b01267d86e79812a2f0f8 /drivers/net/phy/swphy.h | |
parent | phy: convert swphy register generation to tabular form (diff) | |
download | linux-dev-68888ce075a5e77f0df659b128a7cb7c597a73cb.tar.xz linux-dev-68888ce075a5e77f0df659b128a7cb7c597a73cb.zip |
phy: separate swphy state validation from register generation
Separate out the generation of MII registers from the state validation.
This allows us to simplify the error handing in fixed_phy() by allowing
earlier error detection.
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 '')
-rw-r--r-- | drivers/net/phy/swphy.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/swphy.h b/drivers/net/phy/swphy.h index feaa38ff86a2..33d2e061896e 100644 --- a/drivers/net/phy/swphy.h +++ b/drivers/net/phy/swphy.h @@ -3,6 +3,7 @@ struct fixed_phy_status; -int swphy_update_regs(u16 *regs, const struct fixed_phy_status *state); +int swphy_validate_state(const struct fixed_phy_status *state); +void swphy_update_regs(u16 *regs, const struct fixed_phy_status *state); #endif |