pinctrl: sunrisepoint: Define PM ops via INTEL_PINCTRL_PM_OPS()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 30 Aug 2018 16:27:50 +0000 (19:27 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 31 Aug 2018 09:25:50 +0000 (11:25 +0200)
Instead of open coding same structure definition for PM operations,
replace it with a common macro.

No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-sunrisepoint.c

index c7b5272fd927dff3117c81168e562789cd9d186d..53ebceaa1ea75327bb82199a5c6c5bfd7f9e2eff 100644 (file)
@@ -597,10 +597,7 @@ static int spt_pinctrl_probe(struct platform_device *pdev)
        return intel_pinctrl_probe_by_hid(pdev);
 }
 
-static const struct dev_pm_ops spt_pinctrl_pm_ops = {
-       SET_LATE_SYSTEM_SLEEP_PM_OPS(intel_pinctrl_suspend,
-                                    intel_pinctrl_resume)
-};
+static INTEL_PINCTRL_PM_OPS(spt_pinctrl_pm_ops);
 
 static struct platform_driver spt_pinctrl_driver = {
        .probe = spt_pinctrl_probe,