Re: [PATCH 2/2] PM / Domains: Mark "name" const in dev_pm_domain_attach_by_name()

From: Doug Anderson
Date: Fri Feb 15 2019 - 10:44:42 EST


On Fri, Feb 15, 2019 at 2:28 AM Ulf Hansson <ulf.hansson@xxxxxxxxxx> wrote:
> On Thu, 14 Feb 2019 at 19:13, Douglas Anderson <dianders@xxxxxxxxxxxx> wrote:
> >
> > 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@xxxxxxxxxxxx>
> Reviewed-by: Ulf Hansson <ulf.hansson@xxxxxxxxxx>
> Perhaps fold $subject patch into patch1, they seems highly related.
> Anyway, no strong opinion here.

Sure, either way is fine with me so I'll wait until someone tells me
for sure one way or the other. I'm also happy if they just get
squashed together when applied if that's easier. I originally kept
them separate since the two APIs were originally added in separate
patches so it seemed consistent to do the bugfixes in separate
patches. ;-)