pwm: samsung: Use SIMPLE_DEV_PM_OPS macro
Subsystems (2)
PATCH 1/1 pwm: samsung: Use SIMPLE_DEV_PM_OPS macro
Use SIMPLE_DEV_PM_OPS macro in order to make the code simpler.
Signed-off-by Jingoo Han <[email protected]>
--- drivers/pwm/pwm-samsung.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/pwm/pwm-samsung.c +2 -3
@@ -598,9 +598,8 @@ static int pwm_samsung_resume(struct device *dev) }#endif -static const struct dev_pm_ops pwm_samsung_pm_ops = { -SET_SYSTEM_SLEEP_PM_OPS (pwm_samsung_suspend, pwm_samsung_resume) -}; +static SIMPLE_DEV_PM_OPS(pwm_samsung_pm_ops, pwm_samsung_suspend, + pwm_samsung_resume);static struct platform_driver pwm_samsung_driver = { .driver = {
Signature · 1 line
1.7.10.4
Thierry Reding
AppliedQuoted 6 lines · Jingoo Han
Use
SIMPLE_DEV_PM_OPSmacro in order to make the code simpler.Signed-off-by Jingoo Han <[email protected]>--- drivers/pwm/pwm-samsung.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
Applied, thanks.
Thierry