]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ixgbe: use helpers for converting ns to timespec.
authorRichard Cochran <richardcochran@gmail.com>
Tue, 31 Mar 2015 21:08:13 +0000 (23:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 21:19:19 +0000 (17:19 -0400)
commitafa47919a3624f595bc838f5173ce42f8d60c38c
tree7985606e6f695ebcf55d6a409f2f2c9d7e2a19c0
parent71a81d1c71b3bc7692b7cce2a33130983e18ca46
ptp: ixgbe: use helpers for converting ns to timespec.

This patch changes the driver to use ns_to_timespec64() and
timespec64_to_ns() instead of open coding the same logic.

Compile tested only.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c