From 3d8cfe72152acb9ac6237b2b4840c3421571cd9a Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Mon, 13 Oct 2014 14:54:24 -0500 Subject: mts-io: rename mac-eth to mac-addr for mtac-eth accessory cards --- io-module/mtac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io-module/mtac.c b/io-module/mtac.c index d25771d..828d24b 100644 --- a/io-module/mtac.c +++ b/io-module/mtac.c @@ -64,7 +64,7 @@ static ssize_t ap_show_product_info(struct kobject *kobj, struct kobj_attribute value = snprintf(buf, 32, "%s\n", ap_eeprom[port_index].device_id); } else if (! strcmp(attr->attr.name, "hw-version")) { value = snprintf(buf, 32, "%s\n", ap_eeprom[port_index].hw_version); - } else if (! strcmp(attr->attr.name, "mac-eth")) { + } else if (! strcmp(attr->attr.name, "mac-addr")) { value = sprintf(buf, "%02X:%02X:%02X:%02X:%02X:%02X\n", ap_eeprom[port_index].mac_addr[0], ap_eeprom[port_index].mac_addr[1], @@ -86,7 +86,7 @@ static bool ap_add_product_info_attributes(int port, int type, struct attribute* switch (type) { case MTAC_ETH_0_0: - sprintf(buf, "mac-eth"); + sprintf(buf, "mac-addr"); kobj_attr = create_attribute(buf, MTS_ATTR_MODE_RO); if (! kobj_attr) { log_error("failed to create attribute [%s] in port %d", buf, port); -- cgit v1.2.3