summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/microchip
diff options
context:
space:
mode:
authorKory Maincent <kory.maincent@bootlin.com>2023-11-14 14:28:40 +0300
committerDavid S. Miller <davem@davemloft.net>2023-11-18 17:52:57 +0300
commit51bdf3165f012827644c474a6d905baa3de3f1ea (patch)
treefcf4b1ce65392445a9fb675b1d61bcd845d151dd /drivers/net/ethernet/microchip
parentaed5004ee7a0e6f198a6b26fb6a1aa21588a9539 (diff)
downloadlinux-51bdf3165f012827644c474a6d905baa3de3f1ea.tar.xz
net: Replace hwtstamp_source by timestamping layer
Replace hwtstamp_source which is only used by the kernel_hwtstamp_config structure by the more widely use timestamp_layer structure. This is done to prepare the support of selectable timestamping source. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip')
-rw-r--r--drivers/net/ethernet/microchip/lan966x/lan966x_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
index 2635ef8958c8..fbe56b1bb386 100644
--- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
+++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c
@@ -470,15 +470,15 @@ static int lan966x_port_hwtstamp_set(struct net_device *dev,
struct lan966x_port *port = netdev_priv(dev);
int err;
- if (cfg->source != HWTSTAMP_SOURCE_NETDEV &&
- cfg->source != HWTSTAMP_SOURCE_PHYLIB)
+ if (cfg->source != MAC_TIMESTAMPING &&
+ cfg->source != PHY_TIMESTAMPING)
return -EOPNOTSUPP;
err = lan966x_ptp_setup_traps(port, cfg);
if (err)
return err;
- if (cfg->source == HWTSTAMP_SOURCE_NETDEV) {
+ if (cfg->source == MAC_TIMESTAMPING) {
if (!port->lan966x->ptp)
return -EOPNOTSUPP;