]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: make ocelot_init_timestamp take a const struct ptp_clock_info
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 18 Sep 2020 10:57:51 +0000 (13:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Sep 2020 00:52:40 +0000 (17:52 -0700)
commit4fa32dab6a3ae3fb4bb1a2860eec83f8fecf63c4
tree4b008c207530939d8c433dc4d09770bdb28a7552
parentd5d4920da8d1c98344745cfbc28b61a86b2a4c9e
net: mscc: ocelot: make ocelot_init_timestamp take a const struct ptp_clock_info

It is a good measure to ensure correctness if the structures that are
meant to remain constant are only processed by functions that thake
constant arguments.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_ptp.c
include/soc/mscc/ocelot_ptp.h