regulator: rk808: cleanup parent device usage
authorSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 4 May 2023 17:36:16 +0000 (19:36 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 23 May 2023 18:01:57 +0000 (19:01 +0100)
commit5111c931f36cebe77d4ce66964c348e6eb4afca0
tree26076ec4d4b4e89d5e1a76cf31d4525f63560653
parent1b9e86d445a0f5c6d8dcbaf11508cb5dfb5848a8
regulator: rk808: cleanup parent device usage

By overridering the device's of_node a bit earlier we can
get the GPIOs and any other DT properties from our own
device instead of relying on the parent device.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20230504173618.142075-13-sebastian.reichel@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rk808-regulator.c