OSDN Git Service

ptp: mlx4: convert to .adjfine and adjust_by_scaled_ppm
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 28 Oct 2022 11:04:15 +0000 (04:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2022 11:14:16 +0000 (11:14 +0000)
commit6ed795965ede203d762f59b791e3490eb6f74b13
tree88f2ad52e0ee8925c072f3d1534a441c846fa25a
parent73aa29a2b119619bbc1db87e8a8103f4b7e5a5db
ptp: mlx4: convert to .adjfine and adjust_by_scaled_ppm

The mlx4 implementation of .adjfreq is implemented in terms of a
straight forward "base * ppb / 1 billion" calculation.

Convert this driver to .adjfine and use adjust_by_scaled_ppm to perform the
calculation.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Cc: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_clock.c