lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ