PM / Domains: Allow overriding the ->xlate() callback
authorThierry Reding <treding@nvidia.com>
Wed, 29 Mar 2017 16:34:50 +0000 (18:34 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 13 Jun 2017 13:15:08 +0000 (15:15 +0200)
commit408455245a48a1ecabd90133bae0baec3ec4cfb8
tree81f8b53b6afde7256132df44f351ef04044a4a18
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6
PM / Domains: Allow overriding the ->xlate() callback

Allow generic power domain providers to override the ->xlate() callback
in case the default genpd_xlate_onecell() translation callback is not
good enough.

One potential use-case for this is to allow generic power domains to be
specified by an ID rather than an index.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/base/power/domain.c
include/linux/pm_domain.h