Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219489
b: refs/heads/master
c: 3459d45
h: refs/heads/master
i:
  219487: ee7c4a2
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Oct 22, 2010
1 parent 84f21dd commit 5ce452c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 17c2b1fd71f75a50284a33af9bc0d98ed1cbcd30
refs/heads/master: 3459d4553b95084a6390e9b62687488538f33c57
10 changes: 8 additions & 2 deletions trunk/drivers/media/IR/mceusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ struct mceusb_model {
u32 is_polaris:1;

const char *rc_map; /* Allow specify a per-board map */
const char *name; /* per-board name */
};

static const struct mceusb_model mceusb_model[] = {
Expand All @@ -150,6 +151,7 @@ static const struct mceusb_model mceusb_model[] = {
* to allow testing it
*/
.rc_map = RC_MAP_RC5_HAUPPAUGE_NEW,
.name = "cx231xx MCE IR",
},
};

Expand Down Expand Up @@ -955,6 +957,7 @@ static struct input_dev *mceusb_init_input_dev(struct mceusb_dev *ir)
struct ir_dev_props *props;
struct device *dev = ir->dev;
const char *rc_map = RC_MAP_RC6_MCE;
const char *name = "Media Center Ed. eHome Infrared Remote Transceiver";
int ret = -ENODEV;

idev = input_allocate_device();
Expand All @@ -970,8 +973,11 @@ static struct input_dev *mceusb_init_input_dev(struct mceusb_dev *ir)
goto props_alloc_failed;
}

snprintf(ir->name, sizeof(ir->name), "Media Center Ed. eHome "
"Infrared Remote Transceiver (%04x:%04x)",
if (mceusb_model[ir->model].name)
name = mceusb_model[ir->model].name;

snprintf(ir->name, sizeof(ir->name), "%s (%04x:%04x)",
name,
le16_to_cpu(ir->usbdev->descriptor.idVendor),
le16_to_cpu(ir->usbdev->descriptor.idProduct));

Expand Down

0 comments on commit 5ce452c

Please sign in to comment.