Skip to content

Commit f698155

Browse files
author
Bartosz Golaszewski
committed
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 62b5848 commit f698155

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/power/sequencing/pwrseq-qcom-wcn.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,12 @@ static int pwrseq_qcom_wcn_match(struct pwrseq_device *pwrseq,
341341
* device.
342342
*/
343343
if (!of_property_present(dev_node, "vddaon-supply"))
344-
return 0;
344+
return PWRSEQ_NO_MATCH;
345345

346346
struct device_node *reg_node __free(device_node) =
347347
of_parse_phandle(dev_node, "vddaon-supply", 0);
348348
if (!reg_node)
349-
return 0;
349+
return PWRSEQ_NO_MATCH;
350350

351351
/*
352352
* `reg_node` is the PMU AON regulator, its parent is the `regulators`
@@ -355,9 +355,9 @@ static int pwrseq_qcom_wcn_match(struct pwrseq_device *pwrseq,
355355
*/
356356
if (!reg_node->parent || !reg_node->parent->parent ||
357357
reg_node->parent->parent != ctx->of_node)
358-
return 0;
358+
return PWRSEQ_NO_MATCH;
359359

360-
return 1;
360+
return PWRSEQ_MATCH_OK;
361361
}
362362

363363
static int pwrseq_qcom_wcn_probe(struct platform_device *pdev)

0 commit comments

Comments
 (0)