diff options
author | Thierry Reding <treding@nvidia.com> | 2013-10-07 05:30:50 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2013-10-16 03:05:56 -0400 |
commit | 668e63c6701d486c68b49ffffc0e5b7de1a2e95c (patch) | |
tree | a3c1e838eb6651f7173e0128b5968198bc2bd70e | |
parent | faed9c380860d986886e8a8b79b29bb3d1ac2a91 (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>
-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 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) | |||
269 | backlight_device_unregister(bl); | 269 | backlight_device_unregister(bl); |
270 | pwm_config(pb->pwm, 0, pb->period); | 270 | pwm_config(pb->pwm, 0, pb->period); |
271 | pwm_disable(pb->pwm); | 271 | pwm_disable(pb->pwm); |
272 | |||
272 | if (pb->exit) | 273 | if (pb->exit) |
273 | pb->exit(&pdev->dev); | 274 | pb->exit(&pdev->dev); |
275 | |||
274 | return 0; | 276 | return 0; |
275 | } | 277 | } |
276 | 278 | ||
@@ -282,10 +284,13 @@ static int pwm_backlight_suspend(struct device *dev) | |||
282 | 284 | ||
283 | if (pb->notify) | 285 | if (pb->notify) |
284 | pb->notify(pb->dev, 0); | 286 | pb->notify(pb->dev, 0); |
287 | |||
285 | pwm_config(pb->pwm, 0, pb->period); | 288 | pwm_config(pb->pwm, 0, pb->period); |
286 | pwm_disable(pb->pwm); | 289 | pwm_disable(pb->pwm); |
290 | |||
287 | if (pb->notify_after) | 291 | if (pb->notify_after) |
288 | pb->notify_after(pb->dev, 0); | 292 | pb->notify_after(pb->dev, 0); |
293 | |||
289 | return 0; | 294 | return 0; |
290 | } | 295 | } |
291 | 296 | ||
@@ -294,6 +299,7 @@ static int pwm_backlight_resume(struct device *dev) | |||
294 | struct backlight_device *bl = dev_get_drvdata(dev); | 299 | struct backlight_device *bl = dev_get_drvdata(dev); |
295 | 300 | ||
296 | backlight_update_status(bl); | 301 | backlight_update_status(bl); |
302 | |||
297 | return 0; | 303 | return 0; |
298 | } | 304 | } |
299 | #endif | 305 | #endif |
@@ -317,4 +323,3 @@ module_platform_driver(pwm_backlight_driver); | |||
317 | MODULE_DESCRIPTION("PWM based Backlight Driver"); | 323 | MODULE_DESCRIPTION("PWM based Backlight Driver"); |
318 | MODULE_LICENSE("GPL"); | 324 | MODULE_LICENSE("GPL"); |
319 | MODULE_ALIAS("platform:pwm-backlight"); | 325 | MODULE_ALIAS("platform:pwm-backlight"); |
320 | |||