[PATCH 04/10] regulator: of: switch to using class_find_device_by_fwnode()
Mark Brown
broonie at kernel.org
Mon Mar 23 07:00:43 PDT 2026
On Sun, Mar 22, 2026 at 06:54:22PM -0700, Dmitry Torokhov wrote:
> In preparation to class_find_device_by_of_node() going away switch to
> using class_find_device_by_fwnode().
> struct device *dev;
>
> - dev = class_find_device_by_of_node(®ulator_class, np);
> + dev = class_find_device_by_fwnode(®ulator_class, of_fwnode_handle(np));
The regulator API is very deliberately specifically using the OF APIs,
not the ACPI APIs, since ACPI really doesn't want to model regulators.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-phy/attachments/20260323/6d042be8/attachment.sig>
More information about the linux-phy
mailing list