Re: [PATCH] [regulator] pwm-regulator: Add error handling
From: Mark Brown
Date: Wed Nov 29 2023 - 08:24:49 EST
On Wed, Nov 29, 2023 at 05:05:30AM -0800, Haoran Liu wrote:
> + ret = of_property_read_u32_array(pdev->dev.of_node,
> + "pwm-dutycycle-range",
> + dutycycle_range, 2);
> + if (ret) {
> + dev_err(&pdev->dev,
> + "Failed to read pwm-dutycycle-range: %d\n", ret);
> + return ret;
> + }
> +
> + ret = of_property_read_u32(pdev->dev.of_node,
> + "pwm-dutycycle-unit",
> + &dutycycle_unit);
> + if (ret) {
> + dev_err(&pdev->dev,
> + "Failed to read pwm-dutycycle-unit: %d\n", ret);
> + return ret;
> + }
These properties are both optiona..
Attachment:
signature.asc
Description: PGP signature