]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Move PTP data to its own private structure
authorVladimir Oltean <olteanv@gmail.com>
Fri, 11 Oct 2019 23:18:15 +0000 (02:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Oct 2019 23:45:40 +0000 (16:45 -0700)
commit59bbac7b66163354c3eedf2e54d2ff81c93b98c2
treebd4d8282efc6a5c3f070c141b445d96d8361fd54
parentd4ba7d3a22e4f2d0af31fa103909131ed1c346f5
net: dsa: sja1105: Move PTP data to its own private structure

This is a non-functional change with 2 goals (both for the case when
CONFIG_NET_DSA_SJA1105_PTP is not enabled):

- Reduce the size of the sja1105_private structure.
- Make the PTP code more self-contained.

Leaving priv->ptp_data.lock to be initialized in sja1105_main.c is not a
leftover: it will be used in a future patch "net: dsa: sja1105: Restore
PTP time after switch reset".

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