aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@gmail.com>2020-03-15 15:40:15 +0100
committermarex <marex@desktop.lan>2020-05-01 12:35:21 +0200
commit49af0cb5a61c821d416ef069c6950d82523db585 (patch)
tree9bae154aac67c3f6a0990b3b6638260b85a7489a
parent882d5f6983ff23b6f09899bb43d6dfd90ed7492f (diff)
downloadu-boot-49af0cb5a61c821d416ef069c6950d82523db585.zip
u-boot-49af0cb5a61c821d416ef069c6950d82523db585.tar.gz
u-boot-49af0cb5a61c821d416ef069c6950d82523db585.tar.bz2
net: smc911x: Rename smc911x_rx() to smc911x_recv()
Rename the function to keep the naming scheme consistent, no functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--drivers/net/smc911x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 2c72e34..6da6c89 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -184,7 +184,7 @@ static void smc911x_halt(struct eth_device *dev)
smc911x_handle_mac_address(dev);
}
-static int smc911x_rx(struct eth_device *dev)
+static int smc911x_recv(struct eth_device *dev)
{
u32 *data = (u32 *)net_rx_packets[0];
u32 pktlen, tmplen;
@@ -269,7 +269,7 @@ int smc911x_initialize(u8 dev_num, int base_addr)
dev->init = smc911x_init;
dev->halt = smc911x_halt;
dev->send = smc911x_send;
- dev->recv = smc911x_rx;
+ dev->recv = smc911x_recv;
sprintf(dev->name, "%s-%hu", DRIVERNAME, dev_num);
eth_register(dev);