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

This patch changes the driver to use ns_to_timespec64() 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/stmicro/stmmac/stmmac_ptp.c