Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303763
b: refs/heads/master
c: c25e647
h: refs/heads/master
i:
  303761: 35e952b
  303759: 4ff9640
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 4, 2012
1 parent a89f2dd commit b0ad6c1
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 419b1a11fbe7889f8c3e62b0ef33e8b393279563
refs/heads/master: c25e647836cd53f2da7ceff6fabf2603b4362212
4 changes: 3 additions & 1 deletion trunk/drivers/input/misc/powermate.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ struct powermate_device {
struct urb *irq, *config;
struct usb_ctrlrequest *configcr;
struct usb_device *udev;
struct usb_interface *intf;
struct input_dev *input;
spinlock_t lock;
int static_brightness;
Expand All @@ -85,7 +86,7 @@ static void powermate_config_complete(struct urb *urb);
static void powermate_irq(struct urb *urb)
{
struct powermate_device *pm = urb->context;
struct device *dev = &pm->input->dev;
struct device *dev = &pm->intf->dev;
int retval;

switch (urb->status) {
Expand Down Expand Up @@ -333,6 +334,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i
goto fail3;

pm->udev = udev;
pm->intf = intf;
pm->input = input_dev;

usb_make_path(udev, pm->phys, sizeof(pm->phys));
Expand Down

0 comments on commit b0ad6c1

Please sign in to comment.