]> 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)
commit7b28d9f04bf7fa5c2dc730311789d38346323523
tree1ba15767135207cb9f9e1f682e84b1b58619dec6
parent0ab43465360c6706fb0805c03b29cb1fd82a59a2
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