mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
phy: rename hwtstamp callback to hwtstamp_set
PHY devices has hwtstamp callback which actually performs set operation. Rename it to better reflect the action. Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Reviewed-by: Kory Maincent <kory.maincent@bootlin.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://patch.msgid.link/20251124181151.277256-2-vadim.fedorenko@linux.dev Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
c01a6e5b2e
commit
6aac2aa2df
@@ -328,9 +328,9 @@ static u64 ines_find_txts(struct ines_port *port, struct sk_buff *skb)
|
||||
return ns;
|
||||
}
|
||||
|
||||
static int ines_hwtstamp(struct mii_timestamper *mii_ts,
|
||||
struct kernel_hwtstamp_config *cfg,
|
||||
struct netlink_ext_ack *extack)
|
||||
static int ines_hwtstamp_set(struct mii_timestamper *mii_ts,
|
||||
struct kernel_hwtstamp_config *cfg,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
struct ines_port *port = container_of(mii_ts, struct ines_port, mii_ts);
|
||||
u32 cm_one_step = 0, port_conf, ts_stat_rx, ts_stat_tx;
|
||||
@@ -709,7 +709,7 @@ static struct mii_timestamper *ines_ptp_probe_channel(struct device *device,
|
||||
}
|
||||
port->mii_ts.rxtstamp = ines_rxtstamp;
|
||||
port->mii_ts.txtstamp = ines_txtstamp;
|
||||
port->mii_ts.hwtstamp = ines_hwtstamp;
|
||||
port->mii_ts.hwtstamp_set = ines_hwtstamp_set;
|
||||
port->mii_ts.link_state = ines_link_state;
|
||||
port->mii_ts.ts_info = ines_ts_info;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user