cm109.c (e82a82c19f4272ea5437cc76e5711b98e2ee6223) | cm109.c (ac2ee9ba953afe88f7a673e1c0c839227b1d7891) |
---|---|
1/* 2 * Driver for the VoIP USB phones with CM109 chipsets. 3 * 4 * Copyright (C) 2007 - 2008 Alfred E. Heggestad <aeh@db.org> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation, version 2. --- 686 unchanged lines hidden (view full) --- 695 struct usb_host_interface *interface; 696 struct usb_endpoint_descriptor *endpoint; 697 struct cm109_dev *dev; 698 struct input_dev *input_dev = NULL; 699 int ret, pipe, i; 700 int error = -ENOMEM; 701 702 interface = intf->cur_altsetting; | 1/* 2 * Driver for the VoIP USB phones with CM109 chipsets. 3 * 4 * Copyright (C) 2007 - 2008 Alfred E. Heggestad <aeh@db.org> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation, version 2. --- 686 unchanged lines hidden (view full) --- 695 struct usb_host_interface *interface; 696 struct usb_endpoint_descriptor *endpoint; 697 struct cm109_dev *dev; 698 struct input_dev *input_dev = NULL; 699 int ret, pipe, i; 700 int error = -ENOMEM; 701 702 interface = intf->cur_altsetting; |
703 704 if (interface->desc.bNumEndpoints < 1) 705 return -ENODEV; 706 |
|
703 endpoint = &interface->endpoint[0].desc; 704 705 if (!usb_endpoint_is_int_in(endpoint)) 706 return -ENODEV; 707 708 dev = kzalloc(sizeof(*dev), GFP_KERNEL); 709 if (!dev) 710 return -ENOMEM; --- 239 unchanged lines hidden --- | 707 endpoint = &interface->endpoint[0].desc; 708 709 if (!usb_endpoint_is_int_in(endpoint)) 710 return -ENODEV; 711 712 dev = kzalloc(sizeof(*dev), GFP_KERNEL); 713 if (!dev) 714 return -ENOMEM; --- 239 unchanged lines hidden --- |