power: regulator: gpio-regulator: Convert to use APIs which support live DT
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 10 Sep 2020 16:18:17 +0000 (18:18 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Oct 2020 17:33:07 +0000 (13:33 -0400)
commita3b3c1d416f189620bab4ec43adaec1fe920bbc4
tree6804703d8ce640fb52fad4847fd9b5891192eccd
parent2d69b0861811711a27ac535fd8a611a9cdb68d43
power: regulator: gpio-regulator: Convert to use APIs which support live DT

Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the
driver can support live DT.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/power/regulator/gpio-regulator.c