media: cec-pin.c: use proper ktime accessor functions
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 1 Sep 2017 08:37:54 +0000 (04:37 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 11:34:48 +0000 (07:34 -0400)
commit805f23af6fc44138983ea92aee73419910d51563
tree94aad7122be980594f979491f739bf6f3513f91c
parent845d6524d69b40bd6abd61dc1264a8657159aa55
media: cec-pin.c: use proper ktime accessor functions

Use ktime_to_ns/ns_to_ktime. This makes it possible to work with older kernels
and the media_build compatibility system.

For the mainline kernel these functions are NOPs.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-pin.c