i2c: i2c-gpio: Convert to use APIs which support live DT
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 10 Sep 2020 16:25:09 +0000 (18:25 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Oct 2020 17:33:07 +0000 (13:33 -0400)
commit7a462740d09f16a060ac74873a708214524c83d4
treefa1039275f64eef40214d6704d0d4c272caede3c
parenta3b3c1d416f189620bab4ec43adaec1fe920bbc4
i2c: i2c-gpio: 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: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-gpio.c