Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303760
b: refs/heads/master
c: 8818e41
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 4, 2012
1 parent 4ff9640 commit 58920bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: a852d78e4e24f2200fa1764ca3366b4fa4fd072a
refs/heads/master: 8818e4190f0e04ad20a30e7488dcdd3029b4b96d
8 changes: 5 additions & 3 deletions trunk/drivers/input/joystick/xpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ MODULE_DEVICE_TABLE (usb, xpad_table);
struct usb_xpad {
struct input_dev *dev; /* input device interface */
struct usb_device *udev; /* usb device */
struct usb_interface *intf; /* usb interface */

int pad_present;

Expand Down Expand Up @@ -457,7 +458,7 @@ static void xpad360w_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned cha
static void xpad_irq_in(struct urb *urb)
{
struct usb_xpad *xpad = urb->context;
struct device *dev = &xpad->dev->dev;
struct device *dev = &xpad->intf->dev;
int retval, status;

status = urb->status;
Expand Down Expand Up @@ -500,7 +501,7 @@ static void xpad_irq_in(struct urb *urb)
static void xpad_bulk_out(struct urb *urb)
{
struct usb_xpad *xpad = urb->context;
struct device *dev = &xpad->dev->dev;
struct device *dev = &xpad->intf->dev;

switch (urb->status) {
case 0:
Expand All @@ -523,7 +524,7 @@ static void xpad_bulk_out(struct urb *urb)
static void xpad_irq_out(struct urb *urb)
{
struct usb_xpad *xpad = urb->context;
struct device *dev = &xpad->dev->dev;
struct device *dev = &xpad->intf->dev;
int retval, status;

status = urb->status;
Expand Down Expand Up @@ -855,6 +856,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
}

xpad->udev = udev;
xpad->intf = intf;
xpad->mapping = xpad_device[i].mapping;
xpad->xtype = xpad_device[i].xtype;

Expand Down

0 comments on commit 58920bf

Please sign in to comment.