From 35affd7a2ff9a77b9946bf93b616228fcf218d60 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 3 Aug 2017 12:22:14 -0600 Subject: env: Rename eth_getenv_enetaddr() to eth_env_get_enetaddr() Rename this function for consistency with env_get(). Signed-off-by: Simon Glass --- board/ti/evm/evm.c | 2 +- board/ti/ti814x/evm.c | 2 +- board/ti/ti816x/evm.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'board/ti') diff --git a/board/ti/evm/evm.c b/board/ti/evm/evm.c index f15313acf2f..6bf57f9269b 100644 --- a/board/ti/evm/evm.c +++ b/board/ti/evm/evm.c @@ -297,7 +297,7 @@ int board_eth_init(bd_t *bis) rc = smc911x_initialize(0, CONFIG_SMC911X_BASE); - if (!eth_getenv_enetaddr(STR_ENV_ETHADDR, eth_addr)) { + if (!eth_env_get_enetaddr(STR_ENV_ETHADDR, eth_addr)) { dev = eth_get_dev_by_index(0); if (dev) { eth_env_set_enetaddr(STR_ENV_ETHADDR, dev->enetaddr); diff --git a/board/ti/ti814x/evm.c b/board/ti/ti814x/evm.c index 38f9c57606e..cdde6a8ca33 100644 --- a/board/ti/ti814x/evm.c +++ b/board/ti/ti814x/evm.c @@ -166,7 +166,7 @@ int board_eth_init(bd_t *bis) uint8_t mac_addr[6]; uint32_t mac_hi, mac_lo; - if (!eth_getenv_enetaddr("ethaddr", mac_addr)) { + if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { printf(" not set. Reading from E-fuse\n"); /* try reading mac address from efuse */ mac_lo = readl(&cdev->macid0l); diff --git a/board/ti/ti816x/evm.c b/board/ti/ti816x/evm.c index 1a8fe27c9f6..cb40cc5f473 100644 --- a/board/ti/ti816x/evm.c +++ b/board/ti/ti816x/evm.c @@ -38,7 +38,7 @@ int board_eth_init(bd_t *bis) uint32_t mac_hi, mac_lo; struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE; - if (!eth_getenv_enetaddr("ethaddr", mac_addr)) { + if (!eth_env_get_enetaddr("ethaddr", mac_addr)) { printf(" not set. Reading from E-fuse\n"); /* try reading mac address from efuse */ mac_lo = readl(&cdev->macid0l); -- cgit v1.2.3