[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4165978e-bf57-4530-82f6-657ed7296a92@sirena.org.uk>
Date: Wed, 29 Nov 2023 13:24:40 +0000
From: Mark Brown <broonie@...nel.org>
To: Haoran Liu <liuhaoran14@....com>
Cc: lgirdwood@...il.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [regulator] pwm-regulator: Add error handling
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..
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists