diff options
author | csanchez@neurowork.net <csanchez@neurowork.net> | 2010-05-25 11:38:22 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 17:35:34 -0400 |
commit | 16be57259f4e664e4e423caa896963de1b7b8d14 (patch) | |
tree | 7b831c380464865c4afa161b751a4dab74871c21 /drivers/usb/core | |
parent | e9c64f2b39d6861d5f3108ec135966349fc66adb (diff) |
USB: core driver: Fix Coding Styles
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>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/driver.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index a6bd53ace035..880f65baf581 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c | |||
@@ -1742,9 +1742,8 @@ static int usb_runtime_suspend(struct device *dev) | |||
1742 | } | 1742 | } |
1743 | 1743 | ||
1744 | /* Prevent the parent from suspending immediately after */ | 1744 | /* Prevent the parent from suspending immediately after */ |
1745 | else if (udev->parent) { | 1745 | else if (udev->parent) |
1746 | udev->parent->last_busy = jiffies; | 1746 | udev->parent->last_busy = jiffies; |
1747 | } | ||
1748 | } | 1747 | } |
1749 | 1748 | ||
1750 | /* Runtime suspend for a USB interface doesn't mean anything. */ | 1749 | /* Runtime suspend for a USB interface doesn't mean anything. */ |
@@ -1786,7 +1785,7 @@ static int usb_runtime_idle(struct device *dev) | |||
1786 | return 0; | 1785 | return 0; |
1787 | } | 1786 | } |
1788 | 1787 | ||
1789 | static struct dev_pm_ops usb_bus_pm_ops = { | 1788 | static const struct dev_pm_ops usb_bus_pm_ops = { |
1790 | .runtime_suspend = usb_runtime_suspend, | 1789 | .runtime_suspend = usb_runtime_suspend, |
1791 | .runtime_resume = usb_runtime_resume, | 1790 | .runtime_resume = usb_runtime_resume, |
1792 | .runtime_idle = usb_runtime_idle, | 1791 | .runtime_idle = usb_runtime_idle, |
@@ -1794,7 +1793,7 @@ static struct dev_pm_ops usb_bus_pm_ops = { | |||
1794 | 1793 | ||
1795 | #else | 1794 | #else |
1796 | 1795 | ||
1797 | #define usb_bus_pm_ops (*(struct dev_pm_ops *) NULL) | 1796 | #define usb_bus_pm_ops (*(const struct dev_pm_ops *) NULL) |
1798 | 1797 | ||
1799 | #endif /* CONFIG_USB_SUSPEND */ | 1798 | #endif /* CONFIG_USB_SUSPEND */ |
1800 | 1799 | ||