From: Mark Brown Date: Mon, 30 Sep 2024 21:05:51 +0000 (+0100) Subject: Add of_regulator_get_optional() and Fix MTK Power X-Git-Tag: v6.13-rc1~159^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc16594d9967773ca891b3d9111f152e3c99d1cf;p=thirdparty%2Flinux.git Add of_regulator_get_optional() and Fix MTK Power Merge series from Chen-Yu Tsai : 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. --- dc16594d9967773ca891b3d9111f152e3c99d1cf