Commit 3d215b28 authored by Adam Wujek's avatar Adam Wujek 💬 Committed by Grzegorz Daniluk

shell: remove some more code when ABSCAL is not used

Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 1f67f4d2
...@@ -26,14 +26,19 @@ struct subcmd { ...@@ -26,14 +26,19 @@ struct subcmd {
{"gm", wrc_ptp_set_mode, WRC_MODE_GM}, {"gm", wrc_ptp_set_mode, WRC_MODE_GM},
{"master", wrc_ptp_set_mode, WRC_MODE_MASTER}, {"master", wrc_ptp_set_mode, WRC_MODE_MASTER},
{"slave", wrc_ptp_set_mode, WRC_MODE_SLAVE}, {"slave", wrc_ptp_set_mode, WRC_MODE_SLAVE},
#ifdef CONFIG_ABSCAL
{"abscal", wrc_ptp_set_mode, WRC_MODE_ABSCAL}, {"abscal", wrc_ptp_set_mode, WRC_MODE_ABSCAL},
#endif
}; };
static char *is_run[] = {"stopped", "running"}; static char *is_run[] = {"stopped", "running"};
static char *is_mech[] = {[PP_E2E_MECH] = "e2e", [PP_P2P_MECH] = "p2p"}; static char *is_mech[] = {[PP_E2E_MECH] = "e2e", [PP_P2P_MECH] = "p2p"};
static char *is_mode[] = {[WRC_MODE_GM] = "gm", [WRC_MODE_MASTER] = "master", static char *is_mode[] = {[WRC_MODE_GM] = "gm", [WRC_MODE_MASTER] = "master",
[WRC_MODE_SLAVE] = "slave", [WRC_MODE_SLAVE] = "slave"
[WRC_MODE_ABSCAL] = "abscal"}; #ifdef CONFIG_ABSCAL
, [WRC_MODE_ABSCAL] = "abscal"
#endif
};
static int cmd_ptp(const char *args[]) static int cmd_ptp(const char *args[])
{ {
......
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