summaryrefslogtreecommitdiffstats
path: root/drivers/net/tap.c
diff options
context:
space:
mode:
authorsascha <sascha@nomad.localdomain>2007-10-18 11:17:16 +0200
committersascha <sascha@nomad.localdomain>2007-10-18 11:17:16 +0200
commit1b272d80f11438821efa40c91883f2d2713243ad (patch)
tree24bd34f26c97bda9a1c9e0dcdf9d792d883b9e69 /drivers/net/tap.c
parentc054a3682dc169d05300f244b0aaff9b22892c5e (diff)
downloadbarebox-1b272d80f11438821efa40c91883f2d2713243ad.tar.gz
barebox-1b272d80f11438821efa40c91883f2d2713243ad.tar.xz
change functions containing 'mac' or 'enet' in its name to 'ethaddr'.
change the parameter name for ethernet devices to 'ethaddr' aswell.
Diffstat (limited to 'drivers/net/tap.c')
-rw-r--r--drivers/net/tap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tap.c b/drivers/net/tap.c
index 742122a70c..fa410974e4 100644
--- a/drivers/net/tap.c
+++ b/drivers/net/tap.c
@@ -63,12 +63,12 @@ void tap_eth_halt (struct eth_device *edev)
/* nothing to do here */
}
-static int tap_get_mac_address(struct eth_device *edev, unsigned char *adr)
+static int tap_get_ethaddr(struct eth_device *edev, unsigned char *adr)
{
return -1;
}
-static int tap_set_mac_address(struct eth_device *edev, unsigned char *adr)
+static int tap_set_ethaddr(struct eth_device *edev, unsigned char *adr)
{
return 0;
}
@@ -97,8 +97,8 @@ int tap_probe(struct device_d *dev)
edev->send = tap_eth_send;
edev->recv = tap_eth_rx;
edev->halt = tap_eth_halt;
- edev->get_mac_address = tap_get_mac_address;
- edev->set_mac_address = tap_set_mac_address;
+ edev->get_ethaddr = tap_get_ethaddr;
+ edev->set_ethaddr = tap_set_ethaddr;
eth_register(edev);