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>
Mon, 3 Sep 2012 23:36:52 +0000 (01:36 +0200)
commitfb7268be9f72bed6ae48554f00f2dcb2ef333bfc
tree2e77fa08d00b04cf4902f6906489ada6bc41fc2f
parentb5abb085f5540a612b0b7a6326ae2a07de2330dd
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