Skip to content

Commit

Permalink
Clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
gyandreev committed Dec 6, 2023
1 parent 7ffff86 commit 79d333e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/host_commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ struct ec_request_reset_target {
/* Reset the target device. */
#define EC_PRV_CMD_HOTH_RESET_TARGET 0x0012

// Arm the coordinated reset trigger, which will cause the hoth to perform a hard
// reset when it receives the hardware trigger event.
// Arm the coordinated reset trigger, which will cause the hoth to perform a
// hard reset when it receives the hardware trigger event.
#define EC_PRV_CMD_HOTH_ARM_COORDINATED_RESET 0x001A

struct ec_spi_operation_request {
Expand Down
24 changes: 14 additions & 10 deletions examples/htool.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,9 @@ static int command_arm_coordinated_reset(const struct htool_invocation* inv) {
return -1;
}

return htool_exec_hostcmd(dev, EC_CMD_BOARD_SPECIFIC_BASE + EC_PRV_CMD_HOTH_ARM_COORDINATED_RESET,
/*version=*/0, NULL, 0, NULL, 0, NULL);
return htool_exec_hostcmd(
dev, EC_CMD_BOARD_SPECIFIC_BASE + EC_PRV_CMD_HOTH_ARM_COORDINATED_RESET,
/*version=*/0, NULL, 0, NULL, 0, NULL);
}

static int command_passthrough_disable(const struct htool_invocation* inv) {
Expand All @@ -513,8 +514,9 @@ static int command_passthrough_disable(const struct htool_invocation* inv) {
return -1;
}

return htool_exec_hostcmd(dev, EC_CMD_BOARD_SPECIFIC_BASE + EC_PRV_CMD_HOTH_SPS_PASSTHROUGH_DISABLE,
/*version=*/0, NULL, 0, NULL, 0, NULL);
return htool_exec_hostcmd(
dev, EC_CMD_BOARD_SPECIFIC_BASE + EC_PRV_CMD_HOTH_SPS_PASSTHROUGH_DISABLE,
/*version=*/0, NULL, 0, NULL, 0, NULL);
}

static int command_passthrough_enable(const struct htool_invocation* inv) {
Expand All @@ -523,8 +525,9 @@ static int command_passthrough_enable(const struct htool_invocation* inv) {
return -1;
}

return htool_exec_hostcmd(dev, EC_CMD_BOARD_SPECIFIC_BASE + EC_PRV_CMD_HOTH_SPS_PASSTHROUGH_ENABLE,
/*version=*/0, NULL, 0, NULL, 0, NULL);
return htool_exec_hostcmd(
dev, EC_CMD_BOARD_SPECIFIC_BASE + EC_PRV_CMD_HOTH_SPS_PASSTHROUGH_ENABLE,
/*version=*/0, NULL, 0, NULL, 0, NULL);
}

struct libhoth_device* htool_libhoth_device(void) {
Expand Down Expand Up @@ -817,10 +820,11 @@ static const struct htool_cmd CMDS[] = {
.func = command_authz_record_set,
},
{
.verbs = (const char*[]){"arm_coordinated_reset", NULL},
.desc = "Arms the coordinated reset to hard reset when it receives a trigger.",
.params = (const struct htool_param[]){{}},
.func = command_arm_coordinated_reset,
.verbs = (const char*[]){"arm_coordinated_reset", NULL},
.desc = "Arms the coordinated reset to hard reset when it receives a "
"trigger.",
.params = (const struct htool_param[]){{}},
.func = command_arm_coordinated_reset,
},
{},
};
Expand Down

0 comments on commit 79d333e

Please sign in to comment.