diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-07 07:24:09 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-09-25 09:46:15 -0600 |
commit | f0ab8f9fbe73f2243a959641c909314494b771b6 (patch) | |
tree | 14610d0f4a178d8a0b1f7f287241776b2aab3ecd /drivers/spi | |
parent | 4ee0cc89dbbeb2d6b08e702afc1332f7dec8a38f (diff) | |
download | u-boot-f0ab8f9fbe73f2243a959641c909314494b771b6.zip u-boot-f0ab8f9fbe73f2243a959641c909314494b771b6.tar.gz u-boot-f0ab8f9fbe73f2243a959641c909314494b771b6.tar.bz2 |
clk: Rename clk_get_by_driver_info()
This is actually a misnomer now, since the phandle info may contain
a driver_info index or a udevice index. Rename it to use the word
'phandle', which seems more accurate. Add a comment while we are here.
Also add a test for this function.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/rk_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index 8309a53..cb80be7 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -183,7 +183,7 @@ static int conv_of_plat(struct udevice *dev) plat->base = dtplat->reg[0]; plat->frequency = 20000000; - ret = clk_get_by_driver_info(dev, dtplat->clocks, &priv->clk); + ret = clk_get_by_phandle(dev, dtplat->clocks, &priv->clk); if (ret < 0) return ret; |