mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
pinctrl: mediatek: Switch to use no-IRQ PM helpers
Since pm.h provides a helper for system no-IRQ PM callbacks, switch the driver to use it instead of open coded variant. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20231122144744.2222207-1-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
7cc4e6b0e4
commit
142173c4ad
@ -533,7 +533,7 @@ static struct platform_driver mtk_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mediatek-mt2701-pinctrl",
|
||||
.of_match_table = mt2701_pctrl_match,
|
||||
.pm = &mtk_eint_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_eint_pm_ops),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -581,7 +581,7 @@ static struct platform_driver mtk_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mediatek-mt2712-pinctrl",
|
||||
.of_match_table = mt2712_pctrl_match,
|
||||
.pm = &mtk_eint_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_eint_pm_ops),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -612,7 +612,7 @@ static struct platform_driver mt6795_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mt6795-pinctrl",
|
||||
.of_match_table = mt6795_pctrl_match,
|
||||
.pm = &mtk_paris_pinctrl_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_paris_pinctrl_pm_ops),
|
||||
},
|
||||
.probe = mtk_paris_pinctrl_probe,
|
||||
};
|
||||
|
@ -334,7 +334,7 @@ static struct platform_driver mtk_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mediatek-mt8167-pinctrl",
|
||||
.of_match_table = mt8167_pctrl_match,
|
||||
.pm = &mtk_eint_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_eint_pm_ops),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -347,7 +347,7 @@ static struct platform_driver mtk_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mediatek-mt8173-pinctrl",
|
||||
.of_match_table = mt8173_pctrl_match,
|
||||
.pm = &mtk_eint_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_eint_pm_ops),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -576,7 +576,7 @@ static struct platform_driver mt8183_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mt8183-pinctrl",
|
||||
.of_match_table = mt8183_pinctrl_of_match,
|
||||
.pm = &mtk_paris_pinctrl_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_paris_pinctrl_pm_ops),
|
||||
},
|
||||
.probe = mtk_paris_pinctrl_probe,
|
||||
};
|
||||
|
@ -1255,7 +1255,7 @@ static struct platform_driver mt8186_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mt8186-pinctrl",
|
||||
.of_match_table = mt8186_pinctrl_of_match,
|
||||
.pm = &mtk_paris_pinctrl_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_paris_pinctrl_pm_ops),
|
||||
},
|
||||
.probe = mtk_paris_pinctrl_probe,
|
||||
};
|
||||
|
@ -1658,7 +1658,7 @@ static struct platform_driver mt8188_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mt8188-pinctrl",
|
||||
.of_match_table = mt8188_pinctrl_of_match,
|
||||
.pm = &mtk_paris_pinctrl_pm_ops
|
||||
.pm = pm_sleep_ptr(&mtk_paris_pinctrl_pm_ops)
|
||||
},
|
||||
.probe = mtk_paris_pinctrl_probe,
|
||||
};
|
||||
|
@ -1420,7 +1420,7 @@ static struct platform_driver mt8192_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mt8192-pinctrl",
|
||||
.of_match_table = mt8192_pinctrl_of_match,
|
||||
.pm = &mtk_paris_pinctrl_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_paris_pinctrl_pm_ops),
|
||||
},
|
||||
.probe = mtk_paris_pinctrl_probe,
|
||||
};
|
||||
|
@ -968,7 +968,7 @@ static struct platform_driver mt8195_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mt8195-pinctrl",
|
||||
.of_match_table = mt8195_pinctrl_of_match,
|
||||
.pm = &mtk_paris_pinctrl_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_paris_pinctrl_pm_ops),
|
||||
},
|
||||
.probe = mtk_paris_pinctrl_probe,
|
||||
};
|
||||
|
@ -484,7 +484,7 @@ static struct platform_driver mtk_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mediatek-mt8365-pinctrl",
|
||||
.of_match_table = mt8365_pctrl_match,
|
||||
.pm = &mtk_eint_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_eint_pm_ops),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -334,7 +334,7 @@ static struct platform_driver mtk_pinctrl_driver = {
|
||||
.driver = {
|
||||
.name = "mediatek-mt8516-pinctrl",
|
||||
.of_match_table = mt8516_pctrl_match,
|
||||
.pm = &mtk_eint_pm_ops,
|
||||
.pm = pm_sleep_ptr(&mtk_eint_pm_ops),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -914,9 +914,8 @@ static int mtk_eint_resume(struct device *device)
|
||||
return mtk_eint_do_resume(pctl->eint);
|
||||
}
|
||||
|
||||
const struct dev_pm_ops mtk_eint_pm_ops = {
|
||||
.suspend_noirq = mtk_eint_suspend,
|
||||
.resume_noirq = mtk_eint_resume,
|
||||
EXPORT_GPL_DEV_SLEEP_PM_OPS(mtk_eint_pm_ops) = {
|
||||
NOIRQ_SYSTEM_SLEEP_PM_OPS(mtk_eint_suspend, mtk_eint_resume)
|
||||
};
|
||||
|
||||
static int mtk_pctrl_build_state(struct platform_device *pdev)
|
||||
|
@ -1131,9 +1131,8 @@ static int mtk_paris_pinctrl_resume(struct device *device)
|
||||
return mtk_eint_do_resume(pctl->eint);
|
||||
}
|
||||
|
||||
const struct dev_pm_ops mtk_paris_pinctrl_pm_ops = {
|
||||
.suspend_noirq = mtk_paris_pinctrl_suspend,
|
||||
.resume_noirq = mtk_paris_pinctrl_resume,
|
||||
EXPORT_GPL_DEV_SLEEP_PM_OPS(mtk_paris_pinctrl_pm_ops) = {
|
||||
NOIRQ_SYSTEM_SLEEP_PM_OPS(mtk_paris_pinctrl_suspend, mtk_paris_pinctrl_resume)
|
||||
};
|
||||
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
Loading…
Reference in New Issue
Block a user