Commit 04c8de8e authored by Jacob Keller's avatar Jacob Keller Committed by Jeff Kirsher

ixgbe: rename ixgbe_ptp_enable to ixgbe_ptp_feature_enable

Since the name ixgbe_ptp_enable could be misconstrued as a function
which enables the whole PTP core, rename this function so that it is
clear the function is for enabling of the extra features such as PPS
signal.
Signed-off-by: default avatarJacob Keller <jacob.e.keller@intel.com>
Tested-by: default avatarPhil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent d1a35ee2
...@@ -334,7 +334,7 @@ static int ixgbe_ptp_settime(struct ptp_clock_info *ptp, ...@@ -334,7 +334,7 @@ static int ixgbe_ptp_settime(struct ptp_clock_info *ptp,
} }
/** /**
* ixgbe_ptp_enable * ixgbe_ptp_feature_enable
* @ptp: the ptp clock structure * @ptp: the ptp clock structure
* @rq: the requested feature to change * @rq: the requested feature to change
* @on: whether to enable or disable the feature * @on: whether to enable or disable the feature
...@@ -342,8 +342,8 @@ static int ixgbe_ptp_settime(struct ptp_clock_info *ptp, ...@@ -342,8 +342,8 @@ static int ixgbe_ptp_settime(struct ptp_clock_info *ptp,
* enable (or disable) ancillary features of the phc subsystem. * enable (or disable) ancillary features of the phc subsystem.
* our driver only supports the PPS feature on the X540 * our driver only supports the PPS feature on the X540
*/ */
static int ixgbe_ptp_enable(struct ptp_clock_info *ptp, static int ixgbe_ptp_feature_enable(struct ptp_clock_info *ptp,
struct ptp_clock_request *rq, int on) struct ptp_clock_request *rq, int on)
{ {
struct ixgbe_adapter *adapter = struct ixgbe_adapter *adapter =
container_of(ptp, struct ixgbe_adapter, ptp_caps); container_of(ptp, struct ixgbe_adapter, ptp_caps);
...@@ -851,7 +851,7 @@ void ixgbe_ptp_init(struct ixgbe_adapter *adapter) ...@@ -851,7 +851,7 @@ void ixgbe_ptp_init(struct ixgbe_adapter *adapter)
adapter->ptp_caps.adjtime = ixgbe_ptp_adjtime; adapter->ptp_caps.adjtime = ixgbe_ptp_adjtime;
adapter->ptp_caps.gettime = ixgbe_ptp_gettime; adapter->ptp_caps.gettime = ixgbe_ptp_gettime;
adapter->ptp_caps.settime = ixgbe_ptp_settime; adapter->ptp_caps.settime = ixgbe_ptp_settime;
adapter->ptp_caps.enable = ixgbe_ptp_enable; adapter->ptp_caps.enable = ixgbe_ptp_feature_enable;
break; break;
case ixgbe_mac_82599EB: case ixgbe_mac_82599EB:
snprintf(adapter->ptp_caps.name, snprintf(adapter->ptp_caps.name,
...@@ -867,7 +867,7 @@ void ixgbe_ptp_init(struct ixgbe_adapter *adapter) ...@@ -867,7 +867,7 @@ void ixgbe_ptp_init(struct ixgbe_adapter *adapter)
adapter->ptp_caps.adjtime = ixgbe_ptp_adjtime; adapter->ptp_caps.adjtime = ixgbe_ptp_adjtime;
adapter->ptp_caps.gettime = ixgbe_ptp_gettime; adapter->ptp_caps.gettime = ixgbe_ptp_gettime;
adapter->ptp_caps.settime = ixgbe_ptp_settime; adapter->ptp_caps.settime = ixgbe_ptp_settime;
adapter->ptp_caps.enable = ixgbe_ptp_enable; adapter->ptp_caps.enable = ixgbe_ptp_feature_enable;
break; break;
default: default:
adapter->ptp_clock = NULL; adapter->ptp_clock = NULL;
......
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