aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-11-22 10:04:45 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-01 20:45:47 -0200
commit8878ca1fb36791125b714e00fc9a766efa8f8c9e (patch)
tree741ea9a541a266efca06a740f91ddfb47153375c /drivers/media
parent5b7b4a428d5afb641fd95ee7570ac7978704f685 (diff)
[media] linux-next: Fix technisat-usb2 compilation
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb-remote.c2
-rw-r--r--drivers/media/dvb/dvb-usb/dvb-usb.h1
-rw-r--r--drivers/media/dvb/dvb-usb/technisat-usb2.c12
-rw-r--r--drivers/media/rc/keymaps/rc-technisat-usb2.c (renamed from drivers/media/IR/keymaps/rc-technisat-usb2.c)0
4 files changed, 7 insertions, 8 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-remote.c b/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
index c6498f536dff..532d2aa491e8 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
+++ b/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
@@ -246,7 +246,7 @@ static int rc_core_dvb_usb_remote_init(struct dvb_usb_device *d)
dev->map_name = d->props.rc.core.rc_codes;
dev->change_protocol = d->props.rc.core.change_protocol;
dev->allowed_protos = d->props.rc.core.allowed_protos;
- dev->driver_type = RC_DRIVER_SCANCODE;
+ dev->driver_type = d->props.rc.core.driver_type;
usb_to_input_id(d->udev, &dev->input_id);
dev->input_name = "IR-receiver inside an USB DVB receiver";
dev->input_phys = d->rc_phys;
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h
index 65fa9268e7f7..60f7044b0f46 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb.h
+++ b/drivers/media/dvb/dvb-usb/dvb-usb.h
@@ -195,6 +195,7 @@ struct dvb_rc {
int (*rc_query) (struct dvb_usb_device *d);
int rc_interval;
bool bulk_mode; /* uses bulk mode */
+ enum rc_driver_type driver_type;
};
/**
diff --git a/drivers/media/dvb/dvb-usb/technisat-usb2.c b/drivers/media/dvb/dvb-usb/technisat-usb2.c
index 97a6d45321b4..b0e35e949087 100644
--- a/drivers/media/dvb/dvb-usb/technisat-usb2.c
+++ b/drivers/media/dvb/dvb-usb/technisat-usb2.c
@@ -640,18 +640,18 @@ unlock:
while (1) {
ev.pulse = !ev.pulse;
ev.duration = (*b * FIRMWARE_CLOCK_DIVISOR * FIRMWARE_CLOCK_TICK) / 1000;
- ir_raw_event_store(d->rc_input_dev, &ev);
+ ir_raw_event_store(d->rc_dev, &ev);
b++;
if (*b == 0xff) {
ev.pulse = 0;
ev.duration = 888888*2;
- ir_raw_event_store(d->rc_input_dev, &ev);
+ ir_raw_event_store(d->rc_dev, &ev);
break;
}
}
- ir_raw_event_handle(d->rc_input_dev);
+ ir_raw_event_handle(d->rc_dev);
return 1;
}
@@ -729,10 +729,8 @@ static struct dvb_usb_device_properties technisat_usb2_devices = {
.rc_codes = RC_MAP_TECHNISAT_USB2,
.module_name = "technisat-usb2",
.rc_query = technisat_usb2_rc_query,
- .rc_props = {
- .allowed_protos = IR_TYPE_ALL,
- .driver_type = RC_DRIVER_IR_RAW,
- },
+ .allowed_protos = IR_TYPE_ALL,
+ .driver_type = RC_DRIVER_IR_RAW,
}
};
diff --git a/drivers/media/IR/keymaps/rc-technisat-usb2.c b/drivers/media/rc/keymaps/rc-technisat-usb2.c
index 98392228a7e2..98392228a7e2 100644
--- a/drivers/media/IR/keymaps/rc-technisat-usb2.c
+++ b/drivers/media/rc/keymaps/rc-technisat-usb2.c

Privacy Policy