Commit 69d1a70c authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

i40e: rename i40e_ptp_enable to i40e_ptp_feature_enable

Reduces possible confusion and ambiguity in purpose of the ancillary
feature control entry point function.

Change-ID: I21d773c1a86878f6d061505185b596c788d1b7cc
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 56f9920a
...@@ -216,7 +216,7 @@ static int i40e_ptp_settime(struct ptp_clock_info *ptp, ...@@ -216,7 +216,7 @@ static int i40e_ptp_settime(struct ptp_clock_info *ptp,
} }
/** /**
* i40e_ptp_enable - Enable/disable ancillary features of the PHC subsystem * i40e_ptp_feature_enable - Enable/disable ancillary features of the PHC subsystem
* @ptp: The PTP clock structure * @ptp: The PTP clock structure
* @rq: The requested feature to change * @rq: The requested feature to change
* @on: Enable/disable flag * @on: Enable/disable flag
...@@ -224,7 +224,7 @@ static int i40e_ptp_settime(struct ptp_clock_info *ptp, ...@@ -224,7 +224,7 @@ static int i40e_ptp_settime(struct ptp_clock_info *ptp,
* The XL710 does not support any of the ancillary features of the PHC * The XL710 does not support any of the ancillary features of the PHC
* subsystem, so this function may just return. * subsystem, so this function may just return.
**/ **/
static int i40e_ptp_enable(struct ptp_clock_info *ptp, static int i40e_ptp_feature_enable(struct ptp_clock_info *ptp,
struct ptp_clock_request *rq, int on) struct ptp_clock_request *rq, int on)
{ {
return -EOPNOTSUPP; return -EOPNOTSUPP;
...@@ -560,7 +560,7 @@ void i40e_ptp_init(struct i40e_pf *pf) ...@@ -560,7 +560,7 @@ void i40e_ptp_init(struct i40e_pf *pf)
pf->ptp_caps.adjtime = i40e_ptp_adjtime; pf->ptp_caps.adjtime = i40e_ptp_adjtime;
pf->ptp_caps.gettime = i40e_ptp_gettime; pf->ptp_caps.gettime = i40e_ptp_gettime;
pf->ptp_caps.settime = i40e_ptp_settime; pf->ptp_caps.settime = i40e_ptp_settime;
pf->ptp_caps.enable = i40e_ptp_enable; pf->ptp_caps.enable = i40e_ptp_feature_enable;
/* Attempt to register the clock before enabling the hardware. */ /* Attempt to register the clock before enabling the hardware. */
pf->ptp_clock = ptp_clock_register(&pf->ptp_caps, &pf->pdev->dev); pf->ptp_clock = ptp_clock_register(&pf->ptp_caps, &pf->pdev->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment