mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-10 05:15:57 +00:00
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);
|
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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user