PM / Domains: Mark "name" const in dev_pm_domain_attach_by_name()
authorDouglas Anderson <dianders@chromium.org>
Thu, 14 Feb 2019 18:12:49 +0000 (10:12 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Feb 2019 10:36:38 +0000 (11:36 +0100)
commiteeb35df05244c268cd69b425edf6dc6a49ee7ab4
tree7aad29c81d6987d823441dc371dc468fb8145ba1
parent7416f1f206877fa2f61ada3dadbefdb4817b541f
PM / Domains: Mark "name" const in dev_pm_domain_attach_by_name()

As of the patch ("PM / Domains: Mark "name" const in
genpd_dev_pm_attach_by_name()") it's clear that the name in
dev_pm_domain_attach_by_name() can be const.  Mark it as so.  This
allows drivers to pass in a name that was declared "const" in a
driver.

Fixes: 27dceb81f445 ("PM / Domains: Introduce dev_pm_domain_attach_by_name()")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/common.c
include/linux/pm_domain.h