drivers: convert unsupported .adjfreq to .adjfine
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 28 Oct 2022 11:04:14 +0000 (04:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2022 11:14:16 +0000 (11:14 +0000)
A few PTP drivers implement a .adjfreq handler which indicates the
operation is not supported. Convert all of these to .adjfine.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: Wei Liu <wei.liu@kernel.org>
Cc: Dexuan Cui <decui@microsoft.com>
Cc: Vivek Thampi <vithampi@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/hv/hv_util.c
drivers/ptp/ptp_kvm_common.c
drivers/ptp/ptp_vmw.c

index 835e603..d776074 100644 (file)
@@ -706,7 +706,7 @@ static int hv_ptp_settime(struct ptp_clock_info *p, const struct timespec64 *ts)
        return -EOPNOTSUPP;
 }
 
-static int hv_ptp_adjfreq(struct ptp_clock_info *ptp, s32 delta)
+static int hv_ptp_adjfine(struct ptp_clock_info *ptp, long delta)
 {
        return -EOPNOTSUPP;
 }
@@ -724,7 +724,7 @@ static struct ptp_clock_info ptp_hyperv_info = {
        .name           = "hyperv",
        .enable         = hv_ptp_enable,
        .adjtime        = hv_ptp_adjtime,
-       .adjfreq        = hv_ptp_adjfreq,
+       .adjfine        = hv_ptp_adjfine,
        .gettime64      = hv_ptp_gettime,
        .settime64      = hv_ptp_settime,
        .owner          = THIS_MODULE,
index fcae32f..9141162 100644 (file)
@@ -66,7 +66,7 @@ static int ptp_kvm_getcrosststamp(struct ptp_clock_info *ptp,
  * PTP clock operations
  */
 
-static int ptp_kvm_adjfreq(struct ptp_clock_info *ptp, s32 ppb)
+static int ptp_kvm_adjfine(struct ptp_clock_info *ptp, long delta)
 {
        return -EOPNOTSUPP;
 }
@@ -115,7 +115,7 @@ static const struct ptp_clock_info ptp_kvm_caps = {
        .n_ext_ts       = 0,
        .n_pins         = 0,
        .pps            = 0,
-       .adjfreq        = ptp_kvm_adjfreq,
+       .adjfine        = ptp_kvm_adjfine,
        .adjtime        = ptp_kvm_adjtime,
        .gettime64      = ptp_kvm_gettime,
        .settime64      = ptp_kvm_settime,
index 5dca26e..d64eec5 100644 (file)
@@ -47,7 +47,7 @@ static int ptp_vmw_adjtime(struct ptp_clock_info *info, s64 delta)
        return -EOPNOTSUPP;
 }
 
-static int ptp_vmw_adjfreq(struct ptp_clock_info *info, s32 delta)
+static int ptp_vmw_adjfine(struct ptp_clock_info *info, long delta)
 {
        return -EOPNOTSUPP;
 }
@@ -79,7 +79,7 @@ static struct ptp_clock_info ptp_vmw_clock_info = {
        .name           = "ptp_vmw",
        .max_adj        = 0,
        .adjtime        = ptp_vmw_adjtime,
-       .adjfreq        = ptp_vmw_adjfreq,
+       .adjfine        = ptp_vmw_adjfine,
        .gettime64      = ptp_vmw_gettime,
        .settime64      = ptp_vmw_settime,
        .enable         = ptp_vmw_enable,