Re: [PATCH 1/4] PM / Domains: Clean up code validating genpd's status

Viresh Kumar
2017-03-20T11:08:15Z

On 20-03-17, 11:19, Ulf Hansson wrote:
> There exists several similar validations of the genpd->status, against
> GPD_STATE_ACTIVE and GPD_STATE_POWER_OFF. Let's clean up this code by
> converting to use a helper macro, genpd_status_on().
>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> ---
> drivers/base/power/domain.c | 19 +++++++++----------
> 1 file changed, 9 insertions(+), 10 deletions(-)

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>

--
viresh