]> 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>
Wed, 15 Aug 2012 18:30:36 +0000 (20:30 +0200)
commitfd40712e82a379f7780bf88e9fdfb35541deddc8
tree49fd52b954cc114e0de63ea9dd5a256c80d9d6fd
parentce5e131056b844b07ec980c0ea6292a7bc0c134d
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