]> 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)
commita429ba39cf436f7729b5eb697289735552dd94d9
tree8ac90d647210b33a8ebcac895b45921ae1ae4a1c
parentc19ece005718f46128ab594e871031f88c100d75
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