]> git.baikalelectronics.ru Git - kernel.git/commit
ptp_pch: use helpers function for converting between ns and timespec
authorYueHaibing <yuehaibing@huawei.com>
Fri, 27 Apr 2018 07:36:18 +0000 (15:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 19:22:28 +0000 (15:22 -0400)
commitbe67caa3b872112b3752c9d8a2780135d65be937
tree8ac90d647210b33a8ebcac895b45921ae1ae4a1c
parent99f74953578f55dd7a51ef5fe9fe19cdd7575ac3
ptp_pch: use helpers function for converting between ns and timespec

use ns_to_timespec64() and timespec64_to_ns() instead of open coding

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_pch.c