Skip to content

Commit

Permalink
pwm-backlight: Improve readability
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Thierry Reding committed Oct 16, 2013
1 parent faed9c3 commit 668e63c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/video/backlight/pwm_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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
Expand All @@ -317,4 +323,3 @@ module_platform_driver(pwm_backlight_driver);
MODULE_DESCRIPTION("PWM based Backlight Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:pwm-backlight");

0 comments on commit 668e63c

Please sign in to comment.