Merge branch 'next' into for-linus
Prepare second round of input updates for 4.14 merge window.
This commit is contained in:
@@ -313,7 +313,7 @@ static void adi_close(struct input_dev *dev)
|
||||
|
||||
static void adi_init_digital(struct gameport *gameport)
|
||||
{
|
||||
int seq[] = { 4, -2, -3, 10, -6, -11, -7, -9, 11, 0 };
|
||||
static const int seq[] = { 4, -2, -3, 10, -6, -11, -7, -9, 11, 0 };
|
||||
int i;
|
||||
|
||||
for (i = 0; seq[i]; i++) {
|
||||
|
@@ -1764,10 +1764,12 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
|
||||
struct usb_endpoint_descriptor *ep =
|
||||
&intf->cur_altsetting->endpoint[i].desc;
|
||||
|
||||
if (usb_endpoint_dir_in(ep))
|
||||
ep_irq_in = ep;
|
||||
else
|
||||
ep_irq_out = ep;
|
||||
if (usb_endpoint_xfer_int(ep)) {
|
||||
if (usb_endpoint_dir_in(ep))
|
||||
ep_irq_in = ep;
|
||||
else
|
||||
ep_irq_out = ep;
|
||||
}
|
||||
}
|
||||
|
||||
if (!ep_irq_in || !ep_irq_out) {
|
||||
|
Reference in New Issue
Block a user