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>
This commit is contained in:
Russell King
2016-06-23 14:50:15 +01:00
committed by David S. Miller
parent 0629bf17ea
commit 68888ce075
3 changed files with 35 additions and 16 deletions

View File

@@ -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