fixes typo port_managment_error -> port_management_error

Signed-off-by: Geoff Salmon <gsalmon@se-instruments.com>
master
Geoff Salmon 2013-02-04 13:05:36 -05:00 committed by Richard Cochran
parent 89562f06fe
commit d5af4196fc
3 changed files with 7 additions and 7 deletions

View File

@ -670,7 +670,7 @@ void clock_manage(struct clock *c, struct port *p, struct ptp_message *msg)
case TRANSPARENT_CLOCK_DEFAULT_DATA_SET:
case PRIMARY_DOMAIN:
pid = port_identity(p);
if (port_managment_error(pid, p, msg, NOT_SUPPORTED))
if (port_management_error(pid, p, msg, NOT_SUPPORTED))
pr_err("failed to send management error status");
break;
default:

8
port.c
View File

@ -1691,7 +1691,7 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg)
return 0;
break;
case SET:
if (port_managment_error(p->portIdentity, ingress, msg,
if (port_management_error(p->portIdentity, ingress, msg,
NOT_SUPPORTED))
pr_err("port %hu: management error failed", portnum(p));
break;
@ -1717,7 +1717,7 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg)
case TRANSPARENT_CLOCK_PORT_DATA_SET:
case DELAY_MECHANISM:
case LOG_MIN_PDELAY_REQ_INTERVAL:
if (port_managment_error(p->portIdentity, ingress, msg,
if (port_management_error(p->portIdentity, ingress, msg,
NOT_SUPPORTED))
pr_err("port %hu: management error failed", portnum(p));
break;
@ -1727,8 +1727,8 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg)
return 0;
}
int port_managment_error(struct PortIdentity pid, struct port *ingress,
struct ptp_message *req, Enumeration16 error_id)
int port_management_error(struct PortIdentity pid, struct port *ingress,
struct ptp_message *req, Enumeration16 error_id)
{
struct ptp_message *msg;
struct management_tlv *mgt;

4
port.h
View File

@ -116,8 +116,8 @@ int port_manage(struct port *p, struct port *ingress, struct ptp_message *msg);
* @param error_id One of the management error ID values.
* @return Zero on success, non-zero otherwise.
*/
int port_managment_error(struct PortIdentity pid, struct port *ingress,
struct ptp_message *req, Enumeration16 error_id);
int port_management_error(struct PortIdentity pid, struct port *ingress,
struct ptp_message *req, Enumeration16 error_id);
/**
* Allocate a reply to a management message.