]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: Move OF-specific regulator lookup code to of_regulator.c
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 4 Sep 2024 09:00:05 +0000 (17:00 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Sep 2024 12:15:21 +0000 (13:15 +0100)
commitb8c3255457147162cd713a319a8e2274335449b9
tree86747808747995db09288a0c44cb54b37b77c5c9
parent98ce82a52886edd5197e903cb2b56f21bf3b0781
regulator: Move OF-specific regulator lookup code to of_regulator.c

There's still a bit of OF-specific code in the regulator device lookup
function.

Move those bits of code over to of_regulator.c, and create a new
function of_regulator_dev_lookup() to encapsulate the code moved out of
regulator_dev_lookup().

Also mark of_find_regulator_by_node() as static, since there are no
other users in other compile units.

There are no functional changes. A line alignment was also fixed.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20240904090016.2841572-4-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/internal.h
drivers/regulator/of_regulator.c