Commit 6d7c05fa authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Linus Walleij

pinctrl: intel: Introduce common macro for PM operations

This common macro will simplify the code of pin control drivers
for Intel SoCs.
Suggested-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 0c03e92e
...@@ -181,4 +181,9 @@ int intel_pinctrl_suspend(struct device *dev); ...@@ -181,4 +181,9 @@ int intel_pinctrl_suspend(struct device *dev);
int intel_pinctrl_resume(struct device *dev); int intel_pinctrl_resume(struct device *dev);
#endif #endif
#define INTEL_PINCTRL_PM_OPS(_name) \
const struct dev_pm_ops _name = { \
SET_LATE_SYSTEM_SLEEP_PM_OPS(intel_pinctrl_suspend, intel_pinctrl_resume) \
}
#endif /* PINCTRL_INTEL_H */ #endif /* PINCTRL_INTEL_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment