]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - include/linux/pm_domain.h
PM / Domains: Change prototype for the attach and detach callbacks
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 5 Nov 2014 23:37:08 +0000 (00:37 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 8 Nov 2014 01:23:21 +0000 (02:23 +0100)
commitc16561e8df7a64764ef61f02221e98273add325a
tree2fe88df755165595bcada53e2b9fa4554377fca5
parent0df1f2487d2f0d04703f142813d53615d62a1da4
PM / Domains: Change prototype for the attach and detach callbacks

Convert the prototypes to return an int in order to support error
handling in these callbacks.

Also, as suggested by Dmitry Torokhov, pass the domain pointer for use
inside the callbacks, and so that they match the existing
power_on/power_off callbacks which currently take the domain pointer.

Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[ khilman: added domain as parameter to callbacks, as suggested by Dmitry ]
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
include/linux/pm_domain.h