regulator: core: Move of_find_regulator_by_node() to of_regulator.c
authorMaciej Purski <m.purski@samsung.com>
Mon, 22 Jan 2018 14:30:06 +0000 (15:30 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jan 2018 15:48:07 +0000 (15:48 +0000)
commit148096af0bf381c78afe253c07ef1c77778f0e68
treea2522e27df842dde1d6afc18f73ab9f415eb05de
parent0d5c8633b173dd64f0005bba83501c8462463e65
regulator: core: Move of_find_regulator_by_node() to of_regulator.c

As of_find_regulator_by_node() is an of function it should be moved from
core.c to of_regulator.c. It provides better separation of device tree
functions from the core and allows other of_functions in of_regulator.c
to resolve device_node to regulator_dev. This will be useful for
implementation of parsing coupled regulators properties.

Declare of_find_regulator_by_node() function in internal.h as well as
regulator_class and dev_to_rdev(), as they are needed by
of_find_regulator_by_node().

Signed-off-by: Maciej Purski <m.purski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/internal.h
drivers/regulator/of_regulator.c