]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited0b885c8b4b1541a3995ff9df1aa45e9f1e1cb5
treebd2ee3cec9ddd518b0502a2e42de09f7333fa3e0
parent03ef552fa7a16a9a5b445038fa0434378d65483d
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