diff options
author | Thierry Reding <treding@nvidia.com> | 2013-10-07 05:30:50 -0400 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:58:17 -0400 |
commit | 55b5ff2630f2a4ee89163230746d5d331cf3a9df (patch) | |
tree | d379a9a2e92b8504d47c05818aaa17dc5646e802 | |
parent | c68c1874c07c30a3483eed70fb2abe82e19d1d20 (diff) |
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>
(cherry picked from commit 668e63c6701d486c68b49ffffc0e5b7de1a2e95c)
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index c867813218a4..90c1dffaa539 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c | |||
@@ -300,8 +300,10 @@ static int pwm_backlight_remove(struct platform_device *pdev) | |||
300 | backlight_device_unregister(bl); | 300 | backlight_device_unregister(bl); |
301 | pwm_config(pb->pwm, 0, pb->period); | 301 | pwm_config(pb->pwm, 0, pb->period); |
302 | pwm_disable(pb->pwm); | 302 | pwm_disable(pb->pwm); |
303 | |||
303 | if (pb->exit) | 304 | if (pb->exit) |
304 | pb->exit(&pdev->dev); | 305 | pb->exit(&pdev->dev); |
306 | |||
305 | return 0; | 307 | return 0; |
306 | } | 308 | } |
307 | 309 | ||
@@ -313,10 +315,13 @@ static int pwm_backlight_suspend(struct device *dev) | |||
313 | 315 | ||
314 | if (pb->notify) | 316 | if (pb->notify) |
315 | pb->notify(pb->dev, 0); | 317 | pb->notify(pb->dev, 0); |
318 | |||
316 | pwm_config(pb->pwm, 0, pb->period); | 319 | pwm_config(pb->pwm, 0, pb->period); |
317 | pwm_disable(pb->pwm); | 320 | pwm_disable(pb->pwm); |
321 | |||
318 | if (pb->notify_after) | 322 | if (pb->notify_after) |
319 | pb->notify_after(pb->dev, 0); | 323 | pb->notify_after(pb->dev, 0); |
324 | |||
320 | return 0; | 325 | return 0; |
321 | } | 326 | } |
322 | 327 | ||
@@ -325,6 +330,7 @@ static int pwm_backlight_resume(struct device *dev) | |||
325 | struct backlight_device *bl = dev_get_drvdata(dev); | 330 | struct backlight_device *bl = dev_get_drvdata(dev); |
326 | 331 | ||
327 | backlight_update_status(bl); | 332 | backlight_update_status(bl); |
333 | |||
328 | return 0; | 334 | return 0; |
329 | } | 335 | } |
330 | #endif | 336 | #endif |
@@ -348,4 +354,3 @@ module_platform_driver(pwm_backlight_driver); | |||
348 | MODULE_DESCRIPTION("PWM based Backlight Driver"); | 354 | MODULE_DESCRIPTION("PWM based Backlight Driver"); |
349 | MODULE_LICENSE("GPL"); | 355 | MODULE_LICENSE("GPL"); |
350 | MODULE_ALIAS("platform:pwm-backlight"); | 356 | MODULE_ALIAS("platform:pwm-backlight"); |
351 | |||