pinctrl: intel: Introduce common macro for PM operations
This common macro will simplify the code of pin control drivers for Intel SoCs. Suggested-by: Mika Westerberg <mika.westerberg@linux.intel.com> 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>
This commit is contained in:
parent
0c03e92e7d
commit
6d7c05faaf
|
@ -181,4 +181,9 @@ int intel_pinctrl_suspend(struct device *dev);
|
|||
int intel_pinctrl_resume(struct device *dev);
|
||||
#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 */
|
||||
|
|
Loading…
Reference in New Issue