usbkbd.c (762f99f4f3cb41a775b5157dd761217beba65873) | usbkbd.c (b45cde330ba7b52e4c9ea9b36b4a58d32b387441) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) 1999-2001 Vojtech Pavlik 4 * 5 * USB HIDBP Keyboard support 6 */ 7 8/* --- 265 unchanged lines hidden (view full) --- 274 if (interface->desc.bNumEndpoints != 1) 275 return -ENODEV; 276 277 endpoint = &interface->endpoint[0].desc; 278 if (!usb_endpoint_is_int_in(endpoint)) 279 return -ENODEV; 280 281 pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) 1999-2001 Vojtech Pavlik 4 * 5 * USB HIDBP Keyboard support 6 */ 7 8/* --- 265 unchanged lines hidden (view full) --- 274 if (interface->desc.bNumEndpoints != 1) 275 return -ENODEV; 276 277 endpoint = &interface->endpoint[0].desc; 278 if (!usb_endpoint_is_int_in(endpoint)) 279 return -ENODEV; 280 281 pipe = usb_rcvintpipe(dev, endpoint->bEndpointAddress); |
282 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); | 282 maxp = usb_maxpacket(dev, pipe); |
283 284 kbd = kzalloc(sizeof(struct usb_kbd), GFP_KERNEL); 285 input_dev = input_allocate_device(); 286 if (!kbd || !input_dev) 287 goto fail1; 288 289 if (usb_kbd_alloc_mem(dev, kbd)) 290 goto fail2; --- 108 unchanged lines hidden --- | 283 284 kbd = kzalloc(sizeof(struct usb_kbd), GFP_KERNEL); 285 input_dev = input_allocate_device(); 286 if (!kbd || !input_dev) 287 goto fail1; 288 289 if (usb_kbd_alloc_mem(dev, kbd)) 290 goto fail2; --- 108 unchanged lines hidden --- |