diff options
author | Puranjay Mohan <puranjay12@gmail.com> | 2019-06-18 00:19:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-24 14:59:04 -0400 |
commit | 782dc2d58923a4e180c48733b6c70d8d73d972cd (patch) | |
tree | 6b371fbfacf4b3615800fc710f3a5c70a6d268ae /drivers/media/pci/cx88 | |
parent | 77ae46e11df5c96bb4582633851f838f5d954df4 (diff) |
media: pci: cx88: Change the type of 'missed' to u64
Callers of hrtimer_forward_now() should save the return value in u64.
change type of missed from unsigned long to u64.
Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco@xs4all.nl: type changed, so %ld -> %llu in printk]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/pci/cx88')
-rw-r--r-- | drivers/media/pci/cx88/cx88-input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/pci/cx88/cx88-input.c b/drivers/media/pci/cx88/cx88-input.c index 27f690b54e0c..589f52d961eb 100644 --- a/drivers/media/pci/cx88/cx88-input.c +++ b/drivers/media/pci/cx88/cx88-input.c | |||
@@ -167,14 +167,14 @@ static void cx88_ir_handle_key(struct cx88_IR *ir) | |||
167 | 167 | ||
168 | static enum hrtimer_restart cx88_ir_work(struct hrtimer *timer) | 168 | static enum hrtimer_restart cx88_ir_work(struct hrtimer *timer) |
169 | { | 169 | { |
170 | unsigned long missed; | 170 | u64 missed; |
171 | struct cx88_IR *ir = container_of(timer, struct cx88_IR, timer); | 171 | struct cx88_IR *ir = container_of(timer, struct cx88_IR, timer); |
172 | 172 | ||
173 | cx88_ir_handle_key(ir); | 173 | cx88_ir_handle_key(ir); |
174 | missed = hrtimer_forward_now(&ir->timer, | 174 | missed = hrtimer_forward_now(&ir->timer, |
175 | ktime_set(0, ir->polling * 1000000)); | 175 | ktime_set(0, ir->polling * 1000000)); |
176 | if (missed > 1) | 176 | if (missed > 1) |
177 | ir_dprintk("Missed ticks %ld\n", missed - 1); | 177 | ir_dprintk("Missed ticks %llu\n", missed - 1); |
178 | 178 | ||
179 | return HRTIMER_RESTART; | 179 | return HRTIMER_RESTART; |
180 | } | 180 | } |