]> asedeno.scripts.mit.edu Git - linux.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)
commit80e95f472fade809daf8110861a5553fba98cfe5
tree8ac90d647210b33a8ebcac895b45921ae1ae4a1c
parent28fb4e59a47d7f1f0c7a26d2ed3a671c26158536
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