Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219535
b: refs/heads/master
c: 6aa209e
h: refs/heads/master
i:
  219533: e254c08
  219531: b7a74f2
  219527: c876f72
  219519: 6812e63
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Oct 23, 2010
1 parent 92745cf commit 71ffa82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 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: 428cc7633dedbab05aab80b805d8585572dc6dbf
refs/heads/master: 6aa209e41fd51d3ade96e1550d9b514a07ebd8f1
25 changes: 7 additions & 18 deletions trunk/drivers/media/IR/imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ MODULE_DEVICE_TABLE(usb, imon_usb_id_table);

static bool debug;
module_param(debug, bool, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(debug, "Debug messages: 0=no, 1=yes(default: no)");
MODULE_PARM_DESC(debug, "Debug messages: 0=no, 1=yes (default: no)");

/* lcd, vfd, vga or none? should be auto-detected, but can be overridden... */
static int display_type;
Expand Down Expand Up @@ -784,7 +784,7 @@ static struct attribute *imon_display_sysfs_entries[] = {
NULL
};

static struct attribute_group imon_display_attribute_group = {
static struct attribute_group imon_display_attr_group = {
.attrs = imon_display_sysfs_entries
};

Expand All @@ -793,7 +793,7 @@ static struct attribute *imon_rf_sysfs_entries[] = {
NULL
};

static struct attribute_group imon_rf_attribute_group = {
static struct attribute_group imon_rf_attr_group = {
.attrs = imon_rf_sysfs_entries
};

Expand Down Expand Up @@ -2238,8 +2238,7 @@ static void imon_init_display(struct imon_context *ictx,
dev_dbg(ictx->dev, "Registering iMON display with sysfs\n");

/* set up sysfs entry for built-in clock */
ret = sysfs_create_group(&intf->dev.kobj,
&imon_display_attribute_group);
ret = sysfs_create_group(&intf->dev.kobj, &imon_display_attr_group);
if (ret)
dev_err(ictx->dev, "Could not create display sysfs "
"entries(%d)", ret);
Expand Down Expand Up @@ -2312,7 +2311,7 @@ static int __devinit imon_probe(struct usb_interface *interface,
if (ifnum == 0) {
if (product == 0xffdc && ictx->rf_device) {
sysfs_err = sysfs_create_group(&interface->dev.kobj,
&imon_rf_attribute_group);
&imon_rf_attr_group);
if (sysfs_err)
pr_err("Could not create RF sysfs entries(%d)\n",
sysfs_err);
Expand All @@ -2322,14 +2321,6 @@ static int __devinit imon_probe(struct usb_interface *interface,
imon_init_display(ictx, interface);
}

/* set IR protocol/remote type */
ret = imon_ir_change_protocol(ictx, ictx->ir_type);
if (ret) {
dev_warn(dev, "%s: failed to set IR protocol, falling back "
"to standard iMON protocol mode\n", __func__);
ictx->ir_type = IR_TYPE_OTHER;
}

dev_info(dev, "iMON device (%04x:%04x, intf%d) on "
"usb<%d:%d> initialized\n", vendor, product, ifnum,
usbdev->bus->busnum, usbdev->devnum);
Expand Down Expand Up @@ -2368,10 +2359,8 @@ static void __devexit imon_disconnect(struct usb_interface *interface)
* sysfs_remove_group is safe to call even if sysfs_create_group
* hasn't been called
*/
sysfs_remove_group(&interface->dev.kobj,
&imon_display_attribute_group);
sysfs_remove_group(&interface->dev.kobj,
&imon_rf_attribute_group);
sysfs_remove_group(&interface->dev.kobj, &imon_display_attr_group);
sysfs_remove_group(&interface->dev.kobj, &imon_rf_attr_group);

usb_set_intfdata(interface, NULL);

Expand Down

0 comments on commit 71ffa82

Please sign in to comment.