]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: rename choose_configuration
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Aug 2007 04:44:27 +0000 (22:44 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:08 +0000 (14:55 -0700)
As it is global, give it a usb specific name in the global namespace.

Cc: Inaky Perez-Gonzalez <inaky@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/generic.c
drivers/usb/core/hub.c
drivers/usb/core/usb.h

index 7b9e1ec718d2638209be0b6667e7f9b1ed9452c1..9148b69785c5a7229769750190b155777276d623 100644 (file)
@@ -40,7 +40,7 @@ static int is_activesync(struct usb_interface_descriptor *desc)
                && desc->bInterfaceProtocol == 1;
 }
 
-int choose_configuration(struct usb_device *udev)
+int usb_choose_configuration(struct usb_device *udev)
 {
        int i;
        int num_configs;
@@ -164,7 +164,7 @@ static int generic_probe(struct usb_device *udev)
        if (udev->authorized == 0)
                dev_err(&udev->dev, "Device is not authorized for usage\n");
        else {
-               c = choose_configuration(udev);
+               c = usb_choose_configuration(udev);
                if (c >= 0) {
                        err = usb_set_configuration(udev, c);
                        if (err) {
index f725d9e62b5b6e2abf258e20c852ca9f78b29834..4c495c4d5053c86f54eadf2dbc46be4abd6ba1ff 100644 (file)
@@ -1460,7 +1460,7 @@ int usb_authorize_device(struct usb_device *usb_dev)
        /* Choose and set the configuration.  This registers the interfaces
         * with the driver core and lets interface drivers bind to them.
         */
-       c = choose_configuration(usb_dev);
+       c = usb_choose_configuration(usb_dev);
        if (c >= 0) {
                result = usb_set_configuration(usb_dev, c);
                if (result) {
index e22ec7f8eb155ad7b01df92bfb656546ba27cc03..c52626c51f70bd99859c170739eb20b7695937bb 100644 (file)
@@ -23,7 +23,7 @@ extern int usb_get_device_descriptor(struct usb_device *dev,
                unsigned int size);
 extern char *usb_cache_string(struct usb_device *udev, int index);
 extern int usb_set_configuration(struct usb_device *dev, int configuration);
-extern int choose_configuration(struct usb_device *udev);
+extern int usb_choose_configuration(struct usb_device *udev);
 
 extern void usb_kick_khubd(struct usb_device *dev);
 extern int usb_match_device(struct usb_device *dev,