]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Domains: Add power-on function using names to identify domains
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 6 Aug 2012 23:11:14 +0000 (01:11 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Aug 2012 17:39:25 +0000 (19:39 +0200)
commit9072535ab3c8018d5a3126969f2990b815a82de6
tree0e3b38a34f2fd13c45c1ccf0eb8533d9caa533cc
parente034497c55bf58ade8cd24b472aea061c0d00316
PM / Domains: Add power-on function using names to identify domains

It sometimes is necessary to turn on a given PM domain when only
the name of it is known and the domain pointer is not readily
available.  For this reason, add a new helper function,
pm_genpd_name_poweron(), allowing the caller to turn on a PM domain
using its name for identification.  To avoid code duplication,
move the domain lookup code to a separate function.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c
include/linux/pm_domain.h