diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-06-24 17:32:20 +0300 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-06-30 10:07:26 +0300 |
| commit | 62b5848f73dd4f8ae17304dae54562d0c9ecdd3d (patch) | |
| tree | 9b2be2933047f92fde4b3fa146d9c0aa64064da1 /include/linux/pwrseq | |
| parent | 1a7312b93ab023f68b48a1550049a4f850c2c808 (diff) | |
| download | linux-62b5848f73dd4f8ae17304dae54562d0c9ecdd3d.tar.xz | |
power: sequencing: add defines for return values of the match() callback
Instead of using 0 and 1 as magic numbers, let's add proper defines
whose names tell the reader what the meaning behind them is.
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250624-pwrseq-match-defines-v1-3-a59d90a951f1@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'include/linux/pwrseq')
| -rw-r--r-- | include/linux/pwrseq/provider.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pwrseq/provider.h b/include/linux/pwrseq/provider.h index cbc3607cbfcf..33b3d2c2e39d 100644 --- a/include/linux/pwrseq/provider.h +++ b/include/linux/pwrseq/provider.h @@ -13,6 +13,9 @@ struct pwrseq_device; typedef int (*pwrseq_power_state_func)(struct pwrseq_device *); typedef int (*pwrseq_match_func)(struct pwrseq_device *, struct device *); +#define PWRSEQ_NO_MATCH 0 +#define PWRSEQ_MATCH_OK 1 + /** * struct pwrseq_unit_data - Configuration of a single power sequencing * unit. |
