From 46cb9b4561c4c2ad034961386baf6124c2e9b5af Mon Sep 17 00:00:00 2001 From: Alex Tsitsiura Date: Thu, 19 Jan 2023 21:39:37 +0200 Subject: [PATCH] [Telink] Restyled --- examples/all-clusters-app/telink/src/AppTask.cpp | 10 ++++------ .../all-clusters-minimal-app/telink/src/AppTask.cpp | 10 ++++------ examples/light-switch-app/telink/src/AppTask.cpp | 10 ++++------ examples/lighting-app/telink/src/AppTask.cpp | 10 ++++------ examples/ota-requestor-app/telink/src/AppTask.cpp | 10 ++++------ examples/thermostat/telink/src/AppTask.cpp | 10 ++++------ 6 files changed, 24 insertions(+), 36 deletions(-) diff --git a/examples/all-clusters-app/telink/src/AppTask.cpp b/examples/all-clusters-app/telink/src/AppTask.cpp index a3a999cb3317e2..bc05a343618354 100644 --- a/examples/all-clusters-app/telink/src/AppTask.cpp +++ b/examples/all-clusters-app/telink/src/AppTask.cpp @@ -44,10 +44,10 @@ #include #include #if CONFIG_CHIP_LIB_SHELL -#include #include +#include -static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv) +static int cmd_telink_reboot(const struct shell * shell, size_t argc, char ** argv) { ARG_UNUSED(argc); ARG_UNUSED(argv); @@ -56,10 +56,8 @@ static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv sys_reboot(); } -SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, - SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), - SHELL_SUBCMD_SET_END -); +SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), + SHELL_SUBCMD_SET_END); SHELL_CMD_REGISTER(telink, &sub_telink, "Telink commands", NULL); #endif // CONFIG_CHIP_LIB_SHELL diff --git a/examples/all-clusters-minimal-app/telink/src/AppTask.cpp b/examples/all-clusters-minimal-app/telink/src/AppTask.cpp index 0dcc1d73d136f2..2b5a51b524f879 100644 --- a/examples/all-clusters-minimal-app/telink/src/AppTask.cpp +++ b/examples/all-clusters-minimal-app/telink/src/AppTask.cpp @@ -42,10 +42,10 @@ #include #if CONFIG_CHIP_LIB_SHELL -#include #include +#include -static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv) +static int cmd_telink_reboot(const struct shell * shell, size_t argc, char ** argv) { ARG_UNUSED(argc); ARG_UNUSED(argv); @@ -54,10 +54,8 @@ static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv sys_reboot(); } -SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, - SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), - SHELL_SUBCMD_SET_END -); +SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), + SHELL_SUBCMD_SET_END); SHELL_CMD_REGISTER(telink, &sub_telink, "Telink commands", NULL); #endif // CONFIG_CHIP_LIB_SHELL diff --git a/examples/light-switch-app/telink/src/AppTask.cpp b/examples/light-switch-app/telink/src/AppTask.cpp index 7b7a38f9ac7be5..0c8013067fc9d7 100644 --- a/examples/light-switch-app/telink/src/AppTask.cpp +++ b/examples/light-switch-app/telink/src/AppTask.cpp @@ -46,10 +46,10 @@ #include #if CONFIG_CHIP_LIB_SHELL -#include #include +#include -static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv) +static int cmd_telink_reboot(const struct shell * shell, size_t argc, char ** argv) { ARG_UNUSED(argc); ARG_UNUSED(argv); @@ -58,10 +58,8 @@ static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv sys_reboot(); } -SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, - SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), - SHELL_SUBCMD_SET_END -); +SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), + SHELL_SUBCMD_SET_END); SHELL_CMD_REGISTER(telink, &sub_telink, "Telink commands", NULL); #endif // CONFIG_CHIP_LIB_SHELL diff --git a/examples/lighting-app/telink/src/AppTask.cpp b/examples/lighting-app/telink/src/AppTask.cpp index 90dd683b06fa92..0dd80c267c668e 100644 --- a/examples/lighting-app/telink/src/AppTask.cpp +++ b/examples/lighting-app/telink/src/AppTask.cpp @@ -47,10 +47,10 @@ #include #if CONFIG_CHIP_LIB_SHELL -#include #include +#include -static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv) +static int cmd_telink_reboot(const struct shell * shell, size_t argc, char ** argv) { ARG_UNUSED(argc); ARG_UNUSED(argv); @@ -59,10 +59,8 @@ static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv sys_reboot(); } -SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, - SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), - SHELL_SUBCMD_SET_END -); +SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), + SHELL_SUBCMD_SET_END); SHELL_CMD_REGISTER(telink, &sub_telink, "Telink commands", NULL); #endif // CONFIG_CHIP_LIB_SHELL diff --git a/examples/ota-requestor-app/telink/src/AppTask.cpp b/examples/ota-requestor-app/telink/src/AppTask.cpp index bb9e7e41513ce7..af2bc6c906a811 100644 --- a/examples/ota-requestor-app/telink/src/AppTask.cpp +++ b/examples/ota-requestor-app/telink/src/AppTask.cpp @@ -53,10 +53,10 @@ #include #if CONFIG_CHIP_LIB_SHELL -#include #include +#include -static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv) +static int cmd_telink_reboot(const struct shell * shell, size_t argc, char ** argv) { ARG_UNUSED(argc); ARG_UNUSED(argv); @@ -65,10 +65,8 @@ static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv sys_reboot(); } -SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, - SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), - SHELL_SUBCMD_SET_END -); +SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), + SHELL_SUBCMD_SET_END); SHELL_CMD_REGISTER(telink, &sub_telink, "Telink commands", NULL); #endif // CONFIG_CHIP_LIB_SHELL diff --git a/examples/thermostat/telink/src/AppTask.cpp b/examples/thermostat/telink/src/AppTask.cpp index c5390f8459f3e3..28df4af294a3bc 100644 --- a/examples/thermostat/telink/src/AppTask.cpp +++ b/examples/thermostat/telink/src/AppTask.cpp @@ -45,10 +45,10 @@ #include #if CONFIG_CHIP_LIB_SHELL -#include #include +#include -static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv) +static int cmd_telink_reboot(const struct shell * shell, size_t argc, char ** argv) { ARG_UNUSED(argc); ARG_UNUSED(argv); @@ -57,10 +57,8 @@ static int cmd_telink_reboot(const struct shell *shell, size_t argc, char **argv sys_reboot(); } -SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, - SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), - SHELL_SUBCMD_SET_END -); +SHELL_STATIC_SUBCMD_SET_CREATE(sub_telink, SHELL_CMD(reboot, NULL, "Reboot board command", cmd_telink_reboot), + SHELL_SUBCMD_SET_END); SHELL_CMD_REGISTER(telink, &sub_telink, "Telink commands", NULL); #endif // CONFIG_CHIP_LIB_SHELL