]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PM / Domains: Make it possible to use domain names when adding devices
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 6 Aug 2012 23:06:11 +0000 (01:06 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 17 Aug 2012 17:39:25 +0000 (19:39 +0200)
commit793254c826545258aa02a31a9eaa45b446c9acb1
tree79cbaf88a9e850339432e04cfd5c0152e92b6a9c
parenta71bdd3409c67b56b54118d2c7340c8c2239fe7f
PM / Domains: Make it possible to use domain names when adding devices

Add a new helper function __pm_genpd_name_add_device() allowing
a device to be added to a (registered) generic PM domain identified
by name.  Add a wrapper around it, pm_genpd_name_add_device(),
passing NULL as the last argument and reorganize pm_domains.h for the
new functions to be defined consistently with the existing ones.

These functions are useful for adding devices to PM domains whose
representations are stored in tables, when the caller doesn't know
the index of the domain to add the device to, but it knows the
domain's name.

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