net: dsa: sja1105: Make all public PTP functions take dsa_switch as argument
The new rule (as already started for sja1105_tas.h) is for functions of optional driver components (ones which may be disabled via Kconfig - PTP and TAS) to take struct dsa_switch *ds instead of struct sja1105_private *priv as first argument. This is so that forward-declarations of struct sja1105_private can be avoided. So make sja1105_ptp.h the second user of this rule. Signed-off-by: Vladimir Oltean <olteanv@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5b3ae43ab1
commit
61c7712627
@@ -495,7 +495,7 @@ int sja1105_static_config_upload(struct sja1105_private *priv)
|
||||
dev_info(dev, "Succeeded after %d tried\n", RETRIES - retries);
|
||||
}
|
||||
|
||||
rc = sja1105_ptp_reset(priv);
|
||||
rc = sja1105_ptp_reset(priv->ds);
|
||||
if (rc < 0)
|
||||
dev_err(dev, "Failed to reset PTP clock: %d\n", rc);
|
||||
|
||||
|
Reference in New Issue
Block a user