summaryrefslogtreecommitdiff
path: root/drivers/media/pci/pt1
diff options
context:
space:
mode:
authorJasmin Jessich <jasmin@anw.at>2018-05-06 06:44:22 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-09 16:30:17 -0400
commitb3bc535a5cd89e1792459b4904d0f6c2518fffec (patch)
treea43950b257413d55991a727aeee16fceaa1ca99c /drivers/media/pci/pt1
parent06af462ba1ff0ff5fdd230f3d59b5771b291f920 (diff)
media: Use ktime_set() in pt1.c
In commit 20a63349b142 a new variable ktime_t delay has been added. We decided to use the API functions to initialize ktime_t variables within media-tree. Thus variable delay needs to be initialized with ktime_set() instead of setting it directly. Signed-off-by: Jasmin Jessich <jasmin@anw.at> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci/pt1')
-rw-r--r--drivers/media/pci/pt1/pt1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c
index 55a89ea13f2a..5708f69622cc 100644
--- a/drivers/media/pci/pt1/pt1.c
+++ b/drivers/media/pci/pt1/pt1.c
@@ -485,7 +485,7 @@ static int pt1_thread(void *data)
if (!pt1_filter(pt1, page)) {
ktime_t delay;
- delay = PT1_FETCH_DELAY * NSEC_PER_MSEC;
+ delay = ktime_set(0, PT1_FETCH_DELAY * NSEC_PER_MSEC);
set_current_state(TASK_INTERRUPTIBLE);
schedule_hrtimeout_range(&delay,
PT1_FETCH_DELAY_DELTA * NSEC_PER_MSEC,