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>
10 lines
204 B
C
10 lines
204 B
C
#ifndef SWPHY_H
|
|
#define SWPHY_H
|
|
|
|
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);
|
|
|
|
#endif
|