file.c (cb54b53adae70701bdd77d848cea4b9b39b61cf9) | file.c (626f090c5cbbe557379978c7a9525011ad7fbbf6) |
---|---|
1/* 2 * drivers/usb/core/file.c 3 * 4 * (C) Copyright Linus Torvalds 1999 5 * (C) Copyright Johannes Erdfelt 1999-2001 6 * (C) Copyright Andreas Gal 1999 7 * (C) Copyright Gregory P. Smith 1999 8 * (C) Copyright Deti Fliegl 1999 (new USB architecture) --- 139 unchanged lines hidden (view full) --- 148 * enabled, the minor number will be based on the next available free minor, 149 * starting at the class_driver->minor_base. 150 * 151 * This function also creates a usb class device in the sysfs tree. 152 * 153 * usb_deregister_dev() must be called when the driver is done with 154 * the minor numbers given out by this function. 155 * | 1/* 2 * drivers/usb/core/file.c 3 * 4 * (C) Copyright Linus Torvalds 1999 5 * (C) Copyright Johannes Erdfelt 1999-2001 6 * (C) Copyright Andreas Gal 1999 7 * (C) Copyright Gregory P. Smith 1999 8 * (C) Copyright Deti Fliegl 1999 (new USB architecture) --- 139 unchanged lines hidden (view full) --- 148 * enabled, the minor number will be based on the next available free minor, 149 * starting at the class_driver->minor_base. 150 * 151 * This function also creates a usb class device in the sysfs tree. 152 * 153 * usb_deregister_dev() must be called when the driver is done with 154 * the minor numbers given out by this function. 155 * |
156 * Returns -EINVAL if something bad happens with trying to register a | 156 * Return: -EINVAL if something bad happens with trying to register a |
157 * device, and 0 on success. 158 */ 159int usb_register_dev(struct usb_interface *intf, 160 struct usb_class_driver *class_driver) 161{ 162 int retval; 163 int minor_base = class_driver->minor_base; 164 int minor; --- 89 unchanged lines hidden --- | 157 * device, and 0 on success. 158 */ 159int usb_register_dev(struct usb_interface *intf, 160 struct usb_class_driver *class_driver) 161{ 162 int retval; 163 int minor_base = class_driver->minor_base; 164 int minor; --- 89 unchanged lines hidden --- |