diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2013-02-05 04:40:17 -0500 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2013-06-03 07:20:29 -0400 |
commit | de9c739435b47e7d39e448b2cc4c8154cabc9e5a (patch) | |
tree | 6b73c608b15534359040ccc702088870c1d86cef /drivers/devfreq/devfreq.c | |
parent | 39688ce6facd63de796def41a0b9012882b5cc14 (diff) |
PM / devfreq: add comments and Documentation
- Added missing ABI documents
- Added comments to clarify the objectives of functions
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Acked-by: Nishanth Menon <nm@ti.com>
Acked-by: Rajagopal Venkat <rajagopal.venkat@linaro.org>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r-- | drivers/devfreq/devfreq.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index abfa14dd8b4c..44c407986f64 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c | |||
@@ -527,6 +527,8 @@ EXPORT_SYMBOL(devfreq_add_device); | |||
527 | /** | 527 | /** |
528 | * devfreq_remove_device() - Remove devfreq feature from a device. | 528 | * devfreq_remove_device() - Remove devfreq feature from a device. |
529 | * @devfreq: the devfreq instance to be removed | 529 | * @devfreq: the devfreq instance to be removed |
530 | * | ||
531 | * The opposite of devfreq_add_device(). | ||
530 | */ | 532 | */ |
531 | int devfreq_remove_device(struct devfreq *devfreq) | 533 | int devfreq_remove_device(struct devfreq *devfreq) |
532 | { | 534 | { |
@@ -542,6 +544,10 @@ EXPORT_SYMBOL(devfreq_remove_device); | |||
542 | /** | 544 | /** |
543 | * devfreq_suspend_device() - Suspend devfreq of a device. | 545 | * devfreq_suspend_device() - Suspend devfreq of a device. |
544 | * @devfreq: the devfreq instance to be suspended | 546 | * @devfreq: the devfreq instance to be suspended |
547 | * | ||
548 | * This function is intended to be called by the pm callbacks | ||
549 | * (e.g., runtime_suspend, suspend) of the device driver that | ||
550 | * holds the devfreq. | ||
545 | */ | 551 | */ |
546 | int devfreq_suspend_device(struct devfreq *devfreq) | 552 | int devfreq_suspend_device(struct devfreq *devfreq) |
547 | { | 553 | { |
@@ -559,6 +565,10 @@ EXPORT_SYMBOL(devfreq_suspend_device); | |||
559 | /** | 565 | /** |
560 | * devfreq_resume_device() - Resume devfreq of a device. | 566 | * devfreq_resume_device() - Resume devfreq of a device. |
561 | * @devfreq: the devfreq instance to be resumed | 567 | * @devfreq: the devfreq instance to be resumed |
568 | * | ||
569 | * This function is intended to be called by the pm callbacks | ||
570 | * (e.g., runtime_resume, resume) of the device driver that | ||
571 | * holds the devfreq. | ||
562 | */ | 572 | */ |
563 | int devfreq_resume_device(struct devfreq *devfreq) | 573 | int devfreq_resume_device(struct devfreq *devfreq) |
564 | { | 574 | { |