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)
commitb83ef507d9e2bc25cea40b1fb13ebd1ca7c4969a
tree1ba15767135207cb9f9e1f682e84b1b58619dec6
parent21603fc45bdef3696f45d80a1c9d730e06b925c5
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