Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 226284
b: refs/heads/master
c: 3938e0c
h: refs/heads/master
v: v3
  • Loading branch information
David Härdeman authored and Mauro Carvalho Chehab committed Dec 29, 2010
1 parent 11c17fa commit c07ead7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: edb4c25ca3a7997660500692eca3510eac9726e5
refs/heads/master: 3938e0cfeb812e7b66f4e1cb6e34eb2e6864c6a2
8 changes: 3 additions & 5 deletions trunk/drivers/media/video/bt8xx/bttv-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ static int bttv_rc5_irq(struct bttv *btv)
ir->base_time = tv;
ir->last_bit = 0;

mod_timer(&ir->timer_end,
current_jiffies + msecs_to_jiffies(30));
mod_timer(&ir->timer, current_jiffies + msecs_to_jiffies(30));
}

/* toggle GPIO pin 4 to reset the irq */
Expand All @@ -303,8 +302,7 @@ static void bttv_ir_start(struct bttv *btv, struct bttv_ir *ir)
add_timer(&ir->timer);
} else if (ir->rc5_gpio) {
/* set timer_end for code completion */
setup_timer(&ir->timer_end, bttv_rc5_timer_end,
(unsigned long)ir);
setup_timer(&ir->timer, bttv_rc5_timer_end, (unsigned long)ir);
ir->shift_by = 1;
ir->start = 3;
ir->addr = 0x0;
Expand All @@ -322,7 +320,7 @@ static void bttv_ir_stop(struct bttv *btv)
if (btv->remote->rc5_gpio) {
u32 gpio;

del_timer_sync(&btv->remote->timer_end);
del_timer_sync(&btv->remote->timer);
flush_scheduled_work();

gpio = bttv_gpio_read(&btv->c);
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/video/bt8xx/bttvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ struct bttv_format {

struct bttv_ir {
struct rc_dev *dev;
struct timer_list timer;

char name[32];
char phys[32];
Expand All @@ -136,11 +137,9 @@ struct bttv_ir {
int start; // What should RC5_START() be
int addr; // What RC5_ADDR() should be.
int rc5_remote_gap;
struct timer_list timer;

/* RC5 gpio */
u32 rc5_gpio;
struct timer_list timer_end; /* timer_end for code completion */
u32 last_bit; /* last raw bit seen */
u32 code; /* raw code under construction */
struct timeval base_time; /* time of last seen code */
Expand Down

0 comments on commit c07ead7

Please sign in to comment.