mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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 <jg1.han@samsung.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
parent
2974b09860
commit
4407b6d243
1 changed files with 2 additions and 3 deletions
|
@ -598,9 +598,8 @@ static int pwm_samsung_resume(struct device *dev)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const struct dev_pm_ops pwm_samsung_pm_ops = {
|
static SIMPLE_DEV_PM_OPS(pwm_samsung_pm_ops, pwm_samsung_suspend,
|
||||||
SET_SYSTEM_SLEEP_PM_OPS(pwm_samsung_suspend, pwm_samsung_resume)
|
pwm_samsung_resume);
|
||||||
};
|
|
||||||
|
|
||||||
static struct platform_driver pwm_samsung_driver = {
|
static struct platform_driver pwm_samsung_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue