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