[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPDyKFqUZ4pVPgrWfCjH2dDBPRs37L9nc_tAqOtUR=0hzweKVA@mail.gmail.com>
Date: Wed, 25 Jun 2025 12:03:54 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Drew Fustini <drew@...7.com>, Guo Ren <guoren@...nel.org>, Fu Wei <wefu@...hat.com>,
Michal Wilczynski <m.wilczynski@...sung.com>, linux-riscv@...ts.infradead.org,
linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Subject: Re: [PATCH 0/5] pwrseq: replace magic numbers with defines for
match() return values
On Tue, 24 Jun 2025 at 16:32, Bartosz Golaszewski <brgl@...ev.pl> wrote:
>
> We currently use 0 or 1 as magic numbers returned from the match()
> callback. It's more readable to replace them with proper defines whose
> names indicate the meaning. While at it: fix a build issue with the
> thead-gpu driver I noticed and extend build coverage for the drivers.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
> ---
> Bartosz Golaszewski (5):
> pwrseq: thead-gpu: add missing header
> pwrseq: extend build coverage for pwrseq drivers with COMPILE_TEST=y
> pwrseq: add defines for return values of the match() callback
> pwrseq: qcom-wcn: use new defines for match() return values
> pwrseq: thead-gpu: use new defines for match() return values
>
> drivers/power/sequencing/Kconfig | 4 ++--
> drivers/power/sequencing/core.c | 6 +++---
> drivers/power/sequencing/pwrseq-qcom-wcn.c | 8 ++++----
> drivers/power/sequencing/pwrseq-thead-gpu.c | 12 +++++++-----
> include/linux/pwrseq/provider.h | 3 +++
> 5 files changed, 19 insertions(+), 14 deletions(-)
> ---
> base-commit: d4c2d9b5b7ceed14a3a835fd969bb0699b9608d3
> change-id: 20250624-pwrseq-match-defines-aec46817e69e
>
> Best regards,
> --
> Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
>
For the series, feel free to add:
Reviewed-by: Ulf Hansson <ulf.hansson@...aro.org>
Kind regards
Uffe
Powered by blists - more mailing lists