]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: gianfar: use helpers for converting ns to timespec.
authorRichard Cochran <richardcochran@gmail.com>
Tue, 31 Mar 2015 21:08:10 +0000 (23:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 21:19:18 +0000 (17:19 -0400)
commit0036d161015d63e5d45e39eeafd622b81067d1ff
tree4062de1ce9f3858f2c1346661116a9c10a4a360c
parentc7e7d98eae9e9af372a81ae7dec1290848cd5a22
ptp: gianfar: 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.

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