aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/power/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/power/main.c')
-rw-r--r--drivers/base/power/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c
index bf412961a934..b67d9aef9fe4 100644
--- a/drivers/base/power/main.c
+++ b/drivers/base/power/main.c
@@ -465,6 +465,7 @@ static void dpm_watchdog_clear(struct dpm_watchdog *wd)
465 * device_resume_noirq - Execute an "early resume" callback for given device. 465 * device_resume_noirq - Execute an "early resume" callback for given device.
466 * @dev: Device to handle. 466 * @dev: Device to handle.
467 * @state: PM transition of the system being carried out. 467 * @state: PM transition of the system being carried out.
468 * @async: If true, the device is being resumed asynchronously.
468 * 469 *
469 * The driver of @dev will not receive interrupts while this function is being 470 * The driver of @dev will not receive interrupts while this function is being
470 * executed. 471 * executed.
@@ -594,6 +595,7 @@ static void dpm_resume_noirq(pm_message_t state)
594 * device_resume_early - Execute an "early resume" callback for given device. 595 * device_resume_early - Execute an "early resume" callback for given device.
595 * @dev: Device to handle. 596 * @dev: Device to handle.
596 * @state: PM transition of the system being carried out. 597 * @state: PM transition of the system being carried out.
598 * @async: If true, the device is being resumed asynchronously.
597 * 599 *
598 * Runtime PM is disabled for @dev while this function is being executed. 600 * Runtime PM is disabled for @dev while this function is being executed.
599 */ 601 */
@@ -1004,6 +1006,7 @@ static pm_message_t resume_event(pm_message_t sleep_state)
1004 * device_suspend_noirq - Execute a "late suspend" callback for given device. 1006 * device_suspend_noirq - Execute a "late suspend" callback for given device.
1005 * @dev: Device to handle. 1007 * @dev: Device to handle.
1006 * @state: PM transition of the system being carried out. 1008 * @state: PM transition of the system being carried out.
1009 * @async: If true, the device is being suspended asynchronously.
1007 * 1010 *
1008 * The driver of @dev will not receive interrupts while this function is being 1011 * The driver of @dev will not receive interrupts while this function is being
1009 * executed. 1012 * executed.
@@ -1144,6 +1147,7 @@ static int dpm_suspend_noirq(pm_message_t state)
1144 * device_suspend_late - Execute a "late suspend" callback for given device. 1147 * device_suspend_late - Execute a "late suspend" callback for given device.
1145 * @dev: Device to handle. 1148 * @dev: Device to handle.
1146 * @state: PM transition of the system being carried out. 1149 * @state: PM transition of the system being carried out.
1150 * @async: If true, the device is being suspended asynchronously.
1147 * 1151 *
1148 * Runtime PM is disabled for @dev while this function is being executed. 1152 * Runtime PM is disabled for @dev while this function is being executed.
1149 */ 1153 */
@@ -1298,6 +1302,7 @@ EXPORT_SYMBOL_GPL(dpm_suspend_end);
1298 * @dev: Device to suspend. 1302 * @dev: Device to suspend.
1299 * @state: PM transition of the system being carried out. 1303 * @state: PM transition of the system being carried out.
1300 * @cb: Suspend callback to execute. 1304 * @cb: Suspend callback to execute.
1305 * @info: string description of caller.
1301 */ 1306 */
1302static int legacy_suspend(struct device *dev, pm_message_t state, 1307static int legacy_suspend(struct device *dev, pm_message_t state,
1303 int (*cb)(struct device *dev, pm_message_t state), 1308 int (*cb)(struct device *dev, pm_message_t state),