Commit 4f1ef761 authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by Greg Kroah-Hartman

staging: tidspbridge: more readable code

Uppercase function names are not pretty. Also the code flow readability is
enhanced.
Signed-off-by: default avatarVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4a6b1518
...@@ -428,7 +428,7 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev) ...@@ -428,7 +428,7 @@ static int __devexit omap34_xx_bridge_remove(struct platform_device *pdev)
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int BRIDGE_SUSPEND(struct platform_device *pdev, pm_message_t state) static int bridge_suspend(struct platform_device *pdev, pm_message_t state)
{ {
u32 status; u32 status;
u32 command = PWR_EMERGENCYDEEPSLEEP; u32 command = PWR_EMERGENCYDEEPSLEEP;
...@@ -441,7 +441,7 @@ static int BRIDGE_SUSPEND(struct platform_device *pdev, pm_message_t state) ...@@ -441,7 +441,7 @@ static int BRIDGE_SUSPEND(struct platform_device *pdev, pm_message_t state)
return 0; return 0;
} }
static int BRIDGE_RESUME(struct platform_device *pdev) static int bridge_resume(struct platform_device *pdev)
{ {
u32 status; u32 status;
...@@ -453,9 +453,6 @@ static int BRIDGE_RESUME(struct platform_device *pdev) ...@@ -453,9 +453,6 @@ static int BRIDGE_RESUME(struct platform_device *pdev)
wake_up(&bridge_suspend_data.suspend_wq); wake_up(&bridge_suspend_data.suspend_wq);
return 0; return 0;
} }
#else
#define BRIDGE_SUSPEND NULL
#define BRIDGE_RESUME NULL
#endif #endif
static struct platform_driver bridge_driver = { static struct platform_driver bridge_driver = {
...@@ -464,8 +461,10 @@ static struct platform_driver bridge_driver = { ...@@ -464,8 +461,10 @@ static struct platform_driver bridge_driver = {
}, },
.probe = omap34_xx_bridge_probe, .probe = omap34_xx_bridge_probe,
.remove = __devexit_p(omap34_xx_bridge_remove), .remove = __devexit_p(omap34_xx_bridge_remove),
.suspend = BRIDGE_SUSPEND, #ifdef CONFIG_PM
.resume = BRIDGE_RESUME, .suspend = bridge_suspend,
.resume = bridge_resume,
#endif
}; };
static int __init bridge_init(void) static int __init bridge_init(void)
......
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