Commit b0797a47 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: rename PPM_NOTHING_TO_DO to PPM_NO_MESSAGE

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent b5fb56a3
...@@ -306,8 +306,9 @@ enum pp_std_messages { ...@@ -306,8 +306,9 @@ enum pp_std_messages {
PPM_SIGNALING, PPM_SIGNALING,
PPM_MANAGEMENT, PPM_MANAGEMENT,
__PP_NR_MESSAGES_TYPES, __PP_NR_MESSAGES_TYPES,
/* NO_MESSAGE means "no message received", or "eaten by hook" */
PPM_NO_MESSAGE,
PPM_NOTHING_TO_DO = 0x100, /* for hooks.master_msg() */
}; };
/* Enumeration Domain Number (table 2, page 41) */ /* Enumeration Domain Number (table 2, page 41) */
......
...@@ -96,7 +96,7 @@ static int wr_master_msg(struct pp_instance *ppi, unsigned char *pkt, int plen, ...@@ -96,7 +96,7 @@ static int wr_master_msg(struct pp_instance *ppi, unsigned char *pkt, int plen,
hdr->correctionfield.lsb = hdr->correctionfield.lsb =
phase_to_cf_units(ppi->last_rcv_time.phase); phase_to_cf_units(ppi->last_rcv_time.phase);
msg_issue_delay_resp(ppi, time); /* no error check */ msg_issue_delay_resp(ppi, time); /* no error check */
msgtype = PPM_NOTHING_TO_DO; msgtype = PPM_NO_MESSAGE;
break; break;
case PPM_PDELAY_REQ: case PPM_PDELAY_REQ:
...@@ -114,7 +114,7 @@ static int wr_master_msg(struct pp_instance *ppi, unsigned char *pkt, int plen, ...@@ -114,7 +114,7 @@ static int wr_master_msg(struct pp_instance *ppi, unsigned char *pkt, int plen,
/* We must start the handshake as a WR master */ /* We must start the handshake as a WR master */
wr_handshake_init(ppi, PPS_MASTER); wr_handshake_init(ppi, PPS_MASTER);
} }
msgtype = PPM_NOTHING_TO_DO; msgtype = PPM_NO_MESSAGE;
break; break;
} }
......
...@@ -71,7 +71,7 @@ int pp_master(struct pp_instance *ppi, uint8_t *pkt, int plen) ...@@ -71,7 +71,7 @@ int pp_master(struct pp_instance *ppi, uint8_t *pkt, int plen)
/* /*
* An extension can do special treatment of this message type, * An extension can do special treatment of this message type,
* possibly returning error or eating the message by returning * possibly returning error or eating the message by returning
* PPM_NOTHING_TO_DO * PPM_NO_MESSAGE
*/ */
msgtype = ppi->received_ptp_header.messageType; msgtype = ppi->received_ptp_header.messageType;
if (pp_hooks.master_msg) if (pp_hooks.master_msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment