]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: ixp46x: use helpers for converting ns to timespec
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 28 Jan 2016 02:27:19 +0000 (10:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jan 2016 20:38:59 +0000 (12:38 -0800)
commit142df2a4c0f8985c5fc95236d656830e4415d98e
tree1ba15767135207cb9f9e1f682e84b1b58619dec6
parent2858389ac5049c067f34f4993e34d2c121dfab88
ptp: ixp46x: use helpers for converting ns to timespec

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

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ixp46x.c