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:

committed by
David S. Miller

parent
0629bf17ea
commit
68888ce075
@@ -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
|
||||
|
Reference in New Issue
Block a user