Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

power: sequencing: qcom-wcn: use new defines for match() return values

Replace the magic numbers with proper defines we now have in the header.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250624-pwrseq-match-defines-v1-4-a59d90a951f1@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

+4 -4
+4 -4
drivers/power/sequencing/pwrseq-qcom-wcn.c
··· 341 341 * device. 342 342 */ 343 343 if (!of_property_present(dev_node, "vddaon-supply")) 344 - return 0; 344 + return PWRSEQ_NO_MATCH; 345 345 346 346 struct device_node *reg_node __free(device_node) = 347 347 of_parse_phandle(dev_node, "vddaon-supply", 0); 348 348 if (!reg_node) 349 - return 0; 349 + return PWRSEQ_NO_MATCH; 350 350 351 351 /* 352 352 * `reg_node` is the PMU AON regulator, its parent is the `regulators` ··· 355 355 */ 356 356 if (!reg_node->parent || !reg_node->parent->parent || 357 357 reg_node->parent->parent != ctx->of_node) 358 - return 0; 358 + return PWRSEQ_NO_MATCH; 359 359 360 - return 1; 360 + return PWRSEQ_MATCH_OK; 361 361 } 362 362 363 363 static int pwrseq_qcom_wcn_probe(struct platform_device *pdev)