summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy/swphy.h
diff options
context:
space:
mode:
authorRussell King2016-06-23 15:50:15 +0200
committerDavid S. Miller2016-06-27 16:40:57 +0200
commit68888ce075a5e77f0df659b128a7cb7c597a73cb (patch)
treeecf50f5ecda7b35b709b01267d86e79812a2f0f8 /drivers/net/phy/swphy.h
parentphy: convert swphy register generation to tabular form (diff)
downloadkernel-qcow2-linux-68888ce075a5e77f0df659b128a7cb7c597a73cb.tar.gz
kernel-qcow2-linux-68888ce075a5e77f0df659b128a7cb7c597a73cb.tar.xz
kernel-qcow2-linux-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 'drivers/net/phy/swphy.h')
-rw-r--r--drivers/net/phy/swphy.h3
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