diff options
Diffstat (limited to 'usb/devices-fix-coding-styles.patch')
| -rw-r--r-- | usb/devices-fix-coding-styles.patch | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/usb/devices-fix-coding-styles.patch b/usb/devices-fix-coding-styles.patch new file mode 100644 index 00000000000000..195090f8104c6a --- /dev/null +++ b/usb/devices-fix-coding-styles.patch @@ -0,0 +1,72 @@ +From csanchez@neurowork.net Thu Apr 29 13:12:22 2010 +From: "Carlos S�nchez Acosta" <csanchez@neurowork.net> +Date: Wed, 14 Apr 2010 06:58:53 -0500 +Subject: USB: devices: fix Coding Styles +To: "Greg KH" <gregkh@suse.de> +Message-ID: <b2ff38f0d4b7b167a0691997a238cb8e.squirrel@neurowork.net> + + +Fixed coding styles in the config usb driver. + +Signed-off-by: Carlos S�nchez Acosta <csanchez@neurowork.net> +Signed-off-by: Alejandro S�nchez Acosta <asanchez@neurowork.net> +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> + +--- + drivers/usb/core/devices.c | 17 ++++++++++------- + 1 file changed, 10 insertions(+), 7 deletions(-) + +--- a/drivers/usb/core/devices.c ++++ b/drivers/usb/core/devices.c +@@ -1,7 +1,8 @@ + /* + * devices.c + * (C) Copyright 1999 Randy Dunlap. +- * (C) Copyright 1999,2000 Thomas Sailer <sailer@ife.ee.ethz.ch>. (proc file per device) ++ * (C) Copyright 1999,2000 Thomas Sailer <sailer@ife.ee.ethz.ch>. ++ * (proc file per device) + * (C) Copyright 1999 Deti Fliegl (new USB architecture) + * + * This program is free software; you can redistribute it and/or modify +@@ -56,7 +57,7 @@ + #include <linux/smp_lock.h> + #include <linux/usbdevice_fs.h> + #include <linux/mutex.h> +-#include <asm/uaccess.h> ++#include <linux/uaccess.h> + + #include "usb.h" + #include "hcd.h" +@@ -138,8 +139,8 @@ struct class_info { + char *class_name; + }; + +-static const struct class_info clas_info[] = +-{ /* max. 5 chars. per name string */ ++static const struct class_info clas_info[] = { ++ /* max. 5 chars. per name string */ + {USB_CLASS_PER_INTERFACE, ">ifc"}, + {USB_CLASS_AUDIO, "audio"}, + {USB_CLASS_COMM, "comm."}, +@@ -191,8 +192,10 @@ static char *usb_dump_endpoint_descripto + + if (speed == USB_SPEED_HIGH) { + switch (le16_to_cpu(desc->wMaxPacketSize) & (0x03 << 11)) { +- case 1 << 11: bandwidth = 2; break; +- case 2 << 11: bandwidth = 3; break; ++ case 1 << 11: ++ bandwidth = 2; break; ++ case 2 << 11: ++ bandwidth = 3; break; + } + } + +@@ -200,7 +203,7 @@ static char *usb_dump_endpoint_descripto + switch (usb_endpoint_type(desc)) { + case USB_ENDPOINT_XFER_CONTROL: + type = "Ctrl"; +- if (speed == USB_SPEED_HIGH) /* uframes per NAK */ ++ if (speed == USB_SPEED_HIGH) /* uframes per NAK */ + interval = desc->bInterval; + else + interval = 0; |
