Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 37444
b: refs/heads/master
c: 4fcd7d8
h: refs/heads/master
v: v3
  • Loading branch information
Unai Uribarri authored and Mauro Carvalho Chehab committed Sep 26, 2006
1 parent 640ce9e commit e0c4794
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 58f56cbe29042dca81fd59c05fb2055d58557d1e
refs/heads/master: 4fcd7d8f7b6ce0a0adb3edd6d6edcbf2fd05a02b
5 changes: 4 additions & 1 deletion trunk/drivers/media/dvb/dvb-usb/dvb-usb-remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* This file contains functions for initializing the the input-device and for handling remote-control-queries.
*/
#include "dvb-usb-common.h"
#include <linux/usb/input.h>

/* Remote-control poll function - called every dib->rc_query_interval ms to see
* whether the remote control has received anything.
Expand Down Expand Up @@ -96,7 +97,7 @@ int dvb_usb_remote_init(struct dvb_usb_device *d)
return 0;

usb_make_path(d->udev, d->rc_phys, sizeof(d->rc_phys));
strlcpy(d->rc_phys, "/ir0", sizeof(d->rc_phys));
strlcat(d->rc_phys, "/ir0", sizeof(d->rc_phys));

d->rc_input_dev = input_allocate_device();
if (!d->rc_input_dev)
Expand All @@ -107,6 +108,8 @@ int dvb_usb_remote_init(struct dvb_usb_device *d)
d->rc_input_dev->keycodemax = KEY_MAX;
d->rc_input_dev->name = "IR-receiver inside an USB DVB receiver";
d->rc_input_dev->phys = d->rc_phys;
usb_to_input_id(d->udev, &d->rc_input_dev->id);
d->rc_input_dev->cdev.dev = &d->udev->dev;

/* set the bits for the keys */
deb_rc("key map size: %d\n", d->props.rc_key_map_size);
Expand Down

0 comments on commit e0c4794

Please sign in to comment.