]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Add of_regulator_get_optional() and Fix MTK Power
authorMark Brown <broonie@kernel.org>
Mon, 30 Sep 2024 21:05:51 +0000 (22:05 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 30 Sep 2024 21:05:51 +0000 (22:05 +0100)
commitdc16594d9967773ca891b3d9111f152e3c99d1cf
tree809f757ed3c9fd1b8fa77a42ac6c95bd85e8337e
parent18be43aca2c0ec475037923a8086d0a29fcc9d16
parent36ec3f437227470568e5f460997f367f5446a34d
Add of_regulator_get_optional() and Fix MTK Power

Merge series from Chen-Yu Tsai <wenst@chromium.org>:

At ELCE, Sebastian told me about his recent work on adding regulator
supply support to the Rockchip power domain driver [2], how the MediaTek
driver has been using the existing devm_regulator_get() API and
reassigning different device nodes to the device doing the lookup, and
how the new of_regulator_get_optional() is the proper fit for this.

Patch 1 adds a new of_regulator_get_optional() function to look up
regulator supplies using device tree nodes.

Patch 2 adds a devres version of the aforementioned function at
Sebastian's request for the two power domain drivers.