]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regulator: Add (devm_)of_regulator_get()
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 20 Feb 2025 18:58:04 +0000 (19:58 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 24 Feb 2025 15:26:08 +0000 (15:26 +0000)
commit0dffacbbf8d044456d50c893adb9499775c489f4
tree60a92d096e3ea9c41ef0082f6418671e123de823
parent0ad2507d5d93f39619fc42372c347d6006b64319
regulator: Add (devm_)of_regulator_get()

The Rockchip power-domain controller also plans to make use of
per-domain regulators similar to the MediaTek power-domain controller.
Since existing DTs are missing the regulator information, the kernel
should fallback to the automatically created dummy regulator if
necessary. Thus the version without the _optional suffix is needed.

The Rockchip driver plans to use the managed version, but to be
consistent with existing code the unmanaged version is added at the
same time.

Tested-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://patch.msgid.link/20250220-rk3588-gpu-pwr-domain-regulator-v6-1-a4f9c24e5b81@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/devres.c
drivers/regulator/of_regulator.c
include/linux/regulator/consumer.h