PM / Domains: Don't expose generic_pm_domain structure to clients
authorJon Hunter <jonathanh@nvidia.com>
Mon, 12 Sep 2016 11:01:08 +0000 (12:01 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 13 Sep 2016 00:49:33 +0000 (02:49 +0200)
commitf58d4e5ab0ca3453f091eab514474e9fdbfc539f
treebd2ee3cec9ddd518b0502a2e42de09f7333fa3e0
parent3468c9d9ef5cc0f5375b7bc0b2ab360b559fc1a9
PM / Domains: Don't expose generic_pm_domain structure to clients

There should be no need to expose the generic_pm_domain structure to
clients and this eliminates the need to implement reference counting for
any external reference to a PM domain. Therefore, make the functions
pm_genpd_lookup_dev() and of_genpd_get_from_provider() private to the
PM domain core. The functions are renamed in accordance with the naming
conventions for genpd static functions.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
include/linux/pm_domain.h