* [PATCH 2.6.38.7 1/3] xpad: common changes
@ 2011-06-13 0:17 Chris Moeller
0 siblings, 0 replies; only message in thread
From: Chris Moeller @ 2011-06-13 0:17 UTC (permalink / raw)
To: dmitry.torokhov; +Cc: linux-input
This patch enables the output URB for XBox360 Wireless controllers, as
required by either of the other patches which follow.
Signed-off-by: Chris Moeller <kode54@gmail.com>
--- linux/drivers/input/joystick/xpad.c.orig 2011-06-11 19:49:56.964914370 -0700
+++ linux/drivers/input/joystick/xpad.c 2011-06-12 16:38:14.911710960 -0700
@@ -545,7 +542,7 @@ static int xpad_init_output(struct usb_i
struct usb_endpoint_descriptor *ep_irq_out;
int error;
- if (xpad->xtype != XTYPE_XBOX360 && xpad->xtype != XTYPE_XBOX)
+ if (xpad->xtype == XTYPE_UNKNOWN)
return 0;
xpad->odata = usb_alloc_coherent(xpad->udev, XPAD_PKT_LEN,
@@ -579,13 +576,13 @@ static int xpad_init_output(struct usb_i
static void xpad_stop_output(struct usb_xpad *xpad)
{
- if (xpad->xtype == XTYPE_XBOX360 || xpad->xtype == XTYPE_XBOX)
+ if (xpad->xtype != XTYPE_UNKNOWN)
usb_kill_urb(xpad->irq_out);
}
static void xpad_deinit_output(struct usb_xpad *xpad)
{
- if (xpad->xtype == XTYPE_XBOX360 || xpad->xtype == XTYPE_XBOX) {
+ if (xpad->xtype != XTYPE_UNKNOWN) {
usb_free_urb(xpad->irq_out);
usb_free_coherent(xpad->udev, XPAD_PKT_LEN,
xpad->odata, xpad->odata_dma);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-13 0:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-13 0:17 [PATCH 2.6.38.7 1/3] xpad: common changes Chris Moeller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).