regulator: port Linux of_regulator_match
Linux regulator drivers like the pfuze and the incoming stpmic make use
of of_regulator_match to parse regulator init data from the device tree.
Port the function over from Linux v5.3, so drivers depending on it can
follow.

As we have no use in barebox for power saving and suspend states, these
parts are omitted.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 764cc5c commit e0e52b83307ec037912c5c9e762ce6e1ea3b1740
@Ahmad Fatoum Ahmad Fatoum authored on 6 Nov 2019
Sascha Hauer committed on 6 Nov 2019
Showing 4 changed files
View
drivers/regulator/Makefile
View
drivers/regulator/of_regulator.c 0 → 100644
View
include/linux/regulator/machine.h 0 → 100644
View
include/linux/regulator/of_regulator.h 0 → 100644