mlxsw: spectrum_ptp: Rename mlxsw_sp1_ptp_phc_adjfreq()
authorAmit Cohen <amcohen@nvidia.com>
Sun, 24 Jul 2022 08:03:29 +0000 (11:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2022 12:58:56 +0000 (13:58 +0100)
commita168e13f84488611f5b9453fab45649ac2d560ee
treeeb381dbc90ec83644e75dd02144d1976886e22c3
parent4017d929649271541b1c7955fbf48fbe9296f46f
mlxsw: spectrum_ptp: Rename mlxsw_sp1_ptp_phc_adjfreq()

The function mlxsw_sp_ptp_phc_adjfreq() configures MTUTC register to adjust
hardware frequency by a given value.

This configuration will be same for Spectrum-2. In preparation for
Spectrum-2 PTP support, rename the function to not be Spectrum-1 specific.
Later, it will be used for Spectrum-2 also.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_ptp.c