Commit 469271f8 authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

drivers: usb: core: {file,hub,sysfs,usb}.c: Whitespace fixes

including:

- removing of trailing whitespace
- removing spaces before array indexing (foo [] to foo[])
- reindention of a switch-case block
- spaces to tabs
Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a91ccd26
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* (C) Copyright Deti Fliegl 1999 (new USB architecture) * (C) Copyright Deti Fliegl 1999 (new USB architecture)
* (C) Copyright Randy Dunlap 2000 * (C) Copyright Randy Dunlap 2000
* (C) Copyright David Brownell 2000-2001 (kernel hotplug, usb_device_id, * (C) Copyright David Brownell 2000-2001 (kernel hotplug, usb_device_id,
more docs, etc) * more docs, etc)
* (C) Copyright Yggdrasil Computing, Inc. 2000 * (C) Copyright Yggdrasil Computing, Inc. 2000
* (usb_device_id matching changes by Adam J. Richter) * (usb_device_id matching changes by Adam J. Richter)
* (C) Copyright Greg Kroah-Hartman 2002-2003 * (C) Copyright Greg Kroah-Hartman 2002-2003
...@@ -44,7 +44,7 @@ static int usb_open(struct inode * inode, struct file * file) ...@@ -44,7 +44,7 @@ static int usb_open(struct inode * inode, struct file * file)
file->f_op = new_fops; file->f_op = new_fops;
/* Curiouser and curiouser... NULL ->open() as "no device" ? */ /* Curiouser and curiouser... NULL ->open() as "no device" ? */
if (file->f_op->open) if (file->f_op->open)
err = file->f_op->open(inode,file); err = file->f_op->open(inode, file);
if (err) { if (err) {
fops_put(file->f_op); fops_put(file->f_op);
file->f_op = fops_get(old_fops); file->f_op = fops_get(old_fops);
...@@ -166,7 +166,7 @@ int usb_register_dev(struct usb_interface *intf, ...@@ -166,7 +166,7 @@ int usb_register_dev(struct usb_interface *intf,
char *temp; char *temp;
#ifdef CONFIG_USB_DYNAMIC_MINORS #ifdef CONFIG_USB_DYNAMIC_MINORS
/* /*
* We don't care what the device tries to start at, we want to start * We don't care what the device tries to start at, we want to start
* at zero to pack the devices into the smallest available space with * at zero to pack the devices into the smallest available space with
* no holes in the minor range. * no holes in the minor range.
......
This diff is collapsed.
...@@ -398,7 +398,8 @@ static DEVICE_ATTR_RW(autosuspend); ...@@ -398,7 +398,8 @@ static DEVICE_ATTR_RW(autosuspend);
static const char on_string[] = "on"; static const char on_string[] = "on";
static const char auto_string[] = "auto"; static const char auto_string[] = "auto";
static void warn_level(void) { static void warn_level(void)
{
static int level_warned; static int level_warned;
if (!level_warned) { if (!level_warned) {
...@@ -652,7 +653,7 @@ static ssize_t authorized_store(struct device *dev, ...@@ -652,7 +653,7 @@ static ssize_t authorized_store(struct device *dev,
result = usb_deauthorize_device(usb_dev); result = usb_deauthorize_device(usb_dev);
else else
result = usb_authorize_device(usb_dev); result = usb_authorize_device(usb_dev);
return result < 0? result : size; return result < 0 ? result : size;
} }
static DEVICE_ATTR_IGNORE_LOCKDEP(authorized, S_IRUGO | S_IWUSR, static DEVICE_ATTR_IGNORE_LOCKDEP(authorized, S_IRUGO | S_IWUSR,
authorized_show, authorized_store); authorized_show, authorized_store);
......
...@@ -497,7 +497,7 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent, ...@@ -497,7 +497,7 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent,
dev->authorized = 1; dev->authorized = 1;
else { else {
dev->authorized = usb_hcd->authorized_default; dev->authorized = usb_hcd->authorized_default;
dev->wusb = usb_bus_is_wusb(bus)? 1 : 0; dev->wusb = usb_bus_is_wusb(bus) ? 1 : 0;
} }
return dev; return dev;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment