]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Make all public PTP functions take dsa_switch as argument
authorVladimir Oltean <olteanv@gmail.com>
Fri, 11 Oct 2019 23:18:14 +0000 (02:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Oct 2019 23:45:40 +0000 (16:45 -0700)
commit52175daaf93bc192c87ce3932643446471d5c3fe
tree722133cb85ade207b9c040669bedcc4939dd1d74
parent668c64dcc72276a2db4624d7142117e38b04e5d7
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>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/dsa/sja1105/sja1105_ptp.c
drivers/net/dsa/sja1105/sja1105_ptp.h
drivers/net/dsa/sja1105/sja1105_spi.c