Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193012
b: refs/heads/master
c: 15100d8
h: refs/heads/master
v: v3
  • Loading branch information
David Härdeman authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 531351c commit 2448d74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 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: 1f71baef3edd8ba27f38f92da457950e52d88b5f
refs/heads/master: 15100d891a53ffc717cec21d805f8c49db51fb65
19 changes: 7 additions & 12 deletions trunk/drivers/media/dvb/dm1105/dm1105.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <linux/dma-mapping.h>
#include <linux/input.h>
#include <linux/slab.h>
#include <media/ir-common.h>
#include <media/ir-core.h>

#include "demux.h"
#include "dmxdev.h"
Expand Down Expand Up @@ -267,7 +267,6 @@ static void dm1105_card_list(struct pci_dev *pci)
/* infrared remote control */
struct infrared {
struct input_dev *input_dev;
struct ir_input_state ir;
char input_phys[32];
struct work_struct work;
u32 ir_command;
Expand Down Expand Up @@ -533,8 +532,7 @@ static void dm1105_emit_key(struct work_struct *work)

data = (ircom >> 8) & 0x7f;

ir_input_keydown(ir->input_dev, &ir->ir, data);
ir_input_nokey(ir->input_dev, &ir->ir);
ir_keydown(ir->input_dev, data, 0);
}

/* work handler */
Expand Down Expand Up @@ -597,7 +595,6 @@ int __devinit dm1105_ir_init(struct dm1105_dev *dm1105)
{
struct input_dev *input_dev;
char *ir_codes = NULL;
u64 ir_type = IR_TYPE_OTHER;
int err = -ENOMEM;

input_dev = input_allocate_device();
Expand All @@ -608,12 +605,6 @@ int __devinit dm1105_ir_init(struct dm1105_dev *dm1105)
snprintf(dm1105->ir.input_phys, sizeof(dm1105->ir.input_phys),
"pci-%s/ir0", pci_name(dm1105->pdev));

err = ir_input_init(input_dev, &dm1105->ir.ir, ir_type);
if (err < 0) {
input_free_device(input_dev);
return err;
}

input_dev->name = "DVB on-card IR receiver";
input_dev->phys = dm1105->ir.input_phys;
input_dev->id.bustype = BUS_PCI;
Expand All @@ -631,8 +622,12 @@ int __devinit dm1105_ir_init(struct dm1105_dev *dm1105)
INIT_WORK(&dm1105->ir.work, dm1105_emit_key);

err = ir_input_register(input_dev, ir_codes, NULL, MODULE_NAME);
if (err < 0) {
input_free_device(input_dev);
return err;
}

return err;
return 0;
}

void __devexit dm1105_ir_exit(struct dm1105_dev *dm1105)
Expand Down

0 comments on commit 2448d74

Please sign in to comment.