All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] PM: Update function header for dev_pm_get_subsys_data()
@ 2015-01-29 17:39 Ulf Hansson
  2015-01-29 17:39 ` [PATCH 2/2] PM: Convert dev_pm_put_subsys_data() into a void function Ulf Hansson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ulf Hansson @ 2015-01-29 17:39 UTC (permalink / raw)
  To: Rafael J. Wysocki, Len Brown, Pavel Machek, linux-pm
  Cc: Kevin Hilman, Geert Uytterhoeven, Ulf Hansson

The commit "PM: Make dev_pm_get_subsys_data() always return 0 on success"
changed the return value from dev_pm_get_subsys_data(). Let's update the
comment in the function header to reflect this change as well.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 drivers/base/power/common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c
index b0f1388..a1ee51d 100644
--- a/drivers/base/power/common.c
+++ b/drivers/base/power/common.c
@@ -19,8 +19,8 @@
  * @dev: Device to handle.
  *
  * If power.subsys_data is NULL, point it to a new object, otherwise increment
- * its reference counter.  Return 1 if a new object has been created, otherwise
- * return 0 or error code.
+ * its reference counter.  Return 0 if new object has been created or refcount
+ * increased, otherwise negative error code.
  */
 int dev_pm_get_subsys_data(struct device *dev)
 {
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-04 14:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29 17:39 [PATCH 1/2] PM: Update function header for dev_pm_get_subsys_data() Ulf Hansson
2015-01-29 17:39 ` [PATCH 2/2] PM: Convert dev_pm_put_subsys_data() into a void function Ulf Hansson
2015-01-29 17:46   ` Geert Uytterhoeven
2015-01-29 17:44 ` [PATCH 1/2] PM: Update function header for dev_pm_get_subsys_data() Geert Uytterhoeven
2015-02-04 14:39 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.