Re: [PATCH 04/10] regulator: of: switch to using class_find_device_by_fwnode()
From: Mark Brown
Date: Mon Mar 23 2026 - 10:41:53 EST
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.
Attachment:
signature.asc
Description: PGP signature