]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Domains: Make it possible to use names when adding subdomains
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 6 Aug 2012 23:08:37 +0000 (01:08 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Aug 2012 17:39:25 +0000 (19:39 +0200)
commite034497c55bf58ade8cd24b472aea061c0d00316
tree671c80338aa9ab46265889a493e4e26fcd2aab73
parent793254c826545258aa02a31a9eaa45b446c9acb1
PM / Domains: Make it possible to use names when adding subdomains

Add a new helper function, pm_genpd_add_subdomain_names(), allowing
the caller to add a subdomain to a generic PM domain using names for
domain identification (both domains have to be initialized before).

This function is useful for adding subdomains to PM domains whose
representations are stored in tables, when the caller doesn't know
the indices of the domain to add the subdomain to and of the
subdomain itself, but it knows the domains' names.

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