Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219534
b: refs/heads/master
c: 428cc76
h: refs/heads/master
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Oct 23, 2010
1 parent e254c08 commit 92745cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 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: cdff10a18d005eac83524917e7789d57b20877ef
refs/heads/master: 428cc7633dedbab05aab80b805d8585572dc6dbf
19 changes: 9 additions & 10 deletions trunk/drivers/media/IR/imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,16 +1477,16 @@ static void imon_incoming_packet(struct imon_context *ictx,
bool norelease = false;
int i;
u64 scancode;
struct input_dev *idev = NULL;
struct input_dev *rdev = NULL;
struct ir_input_dev *irdev = NULL;
int press_type = 0;
int msec;
struct timeval t;
static struct timeval prev_time = { 0, 0 };
u8 ktype;

idev = ictx->idev;
irdev = input_get_drvdata(idev);
rdev = ictx->rdev;
irdev = input_get_drvdata(rdev);

/* filter out junk data on the older 0xffdc imon devices */
if ((buf[0] == 0xff) && (buf[1] == 0xff) && (buf[2] == 0xff))
Expand Down Expand Up @@ -1570,8 +1570,7 @@ static void imon_incoming_packet(struct imon_context *ictx,
if (press_type == 0)
ir_keyup(irdev);
else {
ir_keydown(ictx->rdev, ictx->rc_scancode,
ictx->rc_toggle);
ir_keydown(rdev, ictx->rc_scancode, ictx->rc_toggle);
spin_lock_irqsave(&ictx->kc_lock, flags);
ictx->last_keycode = ictx->kc;
spin_unlock_irqrestore(&ictx->kc_lock, flags);
Expand All @@ -1587,7 +1586,7 @@ static void imon_incoming_packet(struct imon_context *ictx,
do_gettimeofday(&t);
msec = tv2int(&t, &prev_time);
prev_time = t;
if (msec < idev->rep[REP_DELAY]) {
if (msec < ictx->idev->rep[REP_DELAY]) {
spin_unlock_irqrestore(&ictx->kc_lock, flags);
return;
}
Expand All @@ -1596,12 +1595,12 @@ static void imon_incoming_packet(struct imon_context *ictx,

spin_unlock_irqrestore(&ictx->kc_lock, flags);

input_report_key(idev, kc, press_type);
input_sync(idev);
input_report_key(ictx->idev, kc, press_type);
input_sync(ictx->idev);

/* panel keys don't generate a release */
input_report_key(idev, kc, 0);
input_sync(idev);
input_report_key(ictx->idev, kc, 0);
input_sync(ictx->idev);

ictx->last_keycode = kc;

Expand Down

0 comments on commit 92745cf

Please sign in to comment.