mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 17:41:44 +00:00
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>
This commit is contained in:
parent
77ae46e11d
commit
782dc2d589
@ -167,14 +167,14 @@ static void cx88_ir_handle_key(struct cx88_IR *ir)
|
||||
|
||||
static enum hrtimer_restart cx88_ir_work(struct hrtimer *timer)
|
||||
{
|
||||
unsigned long missed;
|
||||
u64 missed;
|
||||
struct cx88_IR *ir = container_of(timer, struct cx88_IR, timer);
|
||||
|
||||
cx88_ir_handle_key(ir);
|
||||
missed = hrtimer_forward_now(&ir->timer,
|
||||
ktime_set(0, ir->polling * 1000000));
|
||||
if (missed > 1)
|
||||
ir_dprintk("Missed ticks %ld\n", missed - 1);
|
||||
ir_dprintk("Missed ticks %llu\n", missed - 1);
|
||||
|
||||
return HRTIMER_RESTART;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user