summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2013-10-07 11:30:50 +0200
committerThierry Reding <thierry.reding@gmail.com>2013-10-16 09:05:56 +0200
commit668e63c6701d486c68b49ffffc0e5b7de1a2e95c (patch)
treea3c1e838eb6651f7173e0128b5968198bc2bd70e /drivers/video/backlight
parentpwm: don't use devm_pinctrl_get_select_default() in probe (diff)
downloadlinux-668e63c6701d486c68b49ffffc0e5b7de1a2e95c.tar.xz
linux-668e63c6701d486c68b49ffffc0e5b7de1a2e95c.zip
pwm-backlight: Improve readability
Add more blank lines to increase readability. While at it, remove a trailing blank line at the end of the file. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/video/backlight')
-rw-r--r--drivers/video/backlight/pwm_bl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 1fea627394d7..774bce38ba42 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -269,8 +269,10 @@ static int pwm_backlight_remove(struct platform_device *pdev)
backlight_device_unregister(bl);
pwm_config(pb->pwm, 0, pb->period);
pwm_disable(pb->pwm);
+
if (pb->exit)
pb->exit(&pdev->dev);
+
return 0;
}
@@ -282,10 +284,13 @@ static int pwm_backlight_suspend(struct device *dev)
if (pb->notify)
pb->notify(pb->dev, 0);
+
pwm_config(pb->pwm, 0, pb->period);
pwm_disable(pb->pwm);
+
if (pb->notify_after)
pb->notify_after(pb->dev, 0);
+
return 0;
}
@@ -294,6 +299,7 @@ static int pwm_backlight_resume(struct device *dev)
struct backlight_device *bl = dev_get_drvdata(dev);
backlight_update_status(bl);
+
return 0;
}
#endif
@@ -317,4 +323,3 @@ module_platform_driver(pwm_backlight_driver);
MODULE_DESCRIPTION("PWM based Backlight Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:pwm-backlight");
-