PM: sleep: Add dev_wakeup_path() helper
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 19 Nov 2020 07:25:39 +0000 (08:25 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Nov 2020 17:34:55 +0000 (18:34 +0100)
commit4e1d9a737d00f2cc811dc5654f82c92c7d80e98c
tree71088fb08b6d338b88fbab7de414d05c5452461e
parentab150c3f80dcce670926ab3ca412be5047011d22
PM: sleep: Add dev_wakeup_path() helper

Add dev_wakeup_path() helper to avoid to spread
dev->power.wakeup_path test in drivers.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
drivers/base/power/main.c
drivers/i2c/busses/i2c-stm32f7.c
include/linux/pm_wakeup.h