Skip to content

Commit

Permalink
USB: core driver: Fix Coding Styles
Browse files Browse the repository at this point in the history
Fixed coding styles in the core 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>
  • Loading branch information
csanchez@neurowork.net authored and Greg Kroah-Hartman committed Aug 10, 2010
1 parent e9c64f2 commit 16be572
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/usb/core/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1742,9 +1742,8 @@ static int usb_runtime_suspend(struct device *dev)
}

/* Prevent the parent from suspending immediately after */
else if (udev->parent) {
else if (udev->parent)
udev->parent->last_busy = jiffies;
}
}

/* Runtime suspend for a USB interface doesn't mean anything. */
Expand Down Expand Up @@ -1786,15 +1785,15 @@ static int usb_runtime_idle(struct device *dev)
return 0;
}

static struct dev_pm_ops usb_bus_pm_ops = {
static const struct dev_pm_ops usb_bus_pm_ops = {
.runtime_suspend = usb_runtime_suspend,
.runtime_resume = usb_runtime_resume,
.runtime_idle = usb_runtime_idle,
};

#else

#define usb_bus_pm_ops (*(struct dev_pm_ops *) NULL)
#define usb_bus_pm_ops (*(const struct dev_pm_ops *) NULL)

#endif /* CONFIG_USB_SUSPEND */

Expand Down

0 comments on commit 16be572

Please sign in to comment.