summaryrefslogtreecommitdiff
path: root/chip/ish/host_command_heci.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:15:41 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-28 20:40:04 +0000
commit9f1166415a4a369f8e838db6ecc9b219a3516f52 (patch)
tree8a70e7d73b310c09d4fbaa9ed3865f53c6cdbc0c /chip/ish/host_command_heci.c
parent2a628b96ec200319cdc94e3359e809c592d461e5 (diff)
downloadchrome-ec-9f1166415a4a369f8e838db6ecc9b219a3516f52.tar.gz
chip/ish/host_command_heci.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Ic96238d4f78bc6355d541c31db8666f9d268ba31 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729180 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'chip/ish/host_command_heci.c')
-rw-r--r--chip/ish/host_command_heci.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/chip/ish/host_command_heci.c b/chip/ish/host_command_heci.c
index de1485417b..cec72063b4 100644
--- a/chip/ish/host_command_heci.c
+++ b/chip/ish/host_command_heci.c
@@ -13,11 +13,16 @@
#include "util.h"
#define CPUTS(outstr) cputs(CC_LPC, outstr)
-#define CPRINTS(format, args...) cprints(CC_LPC, format, ## args)
-#define CPRINTF(format, args...) cprintf(CC_LPC, format, ## args)
-
-#define HECI_CLIENT_CROS_EC_ISH_GUID { 0x7b7154d0, 0x56f4, 0x4bdc,\
- { 0xb0, 0xd8, 0x9e, 0x7c, 0xda, 0xe0, 0xd6, 0xa0 } }
+#define CPRINTS(format, args...) cprints(CC_LPC, format, ##args)
+#define CPRINTF(format, args...) cprintf(CC_LPC, format, ##args)
+
+#define HECI_CLIENT_CROS_EC_ISH_GUID \
+ { \
+ 0x7b7154d0, 0x56f4, 0x4bdc, \
+ { \
+ 0xb0, 0xd8, 0x9e, 0x7c, 0xda, 0xe0, 0xd6, 0xa0 \
+ } \
+ }
/* Handle for all heci cros_ec interactions */
static heci_handle_t heci_cros_ec_handle = HECI_INVALID_HANDLE;
@@ -33,7 +38,7 @@ static heci_handle_t heci_cros_ec_handle = HECI_INVALID_HANDLE;
struct cros_ec_ishtp_msg_hdr {
uint8_t channel;
uint8_t status;
- uint8_t id; /* Pairs up request and responses */
+ uint8_t id; /* Pairs up request and responses */
uint8_t reserved;
} __ec_align4;
@@ -88,10 +93,11 @@ static void heci_send_hostcmd_response(struct host_packet *pkt)
}
static void cros_ec_ishtp_subsys_new_msg_received(const heci_handle_t handle,
- uint8_t *msg, const size_t msg_size)
+ uint8_t *msg,
+ const size_t msg_size)
{
- struct cros_ec_ishtp_msg *in = (void *) msg;
- struct cros_ec_ishtp_msg *out = (void *) response_buffer;
+ struct cros_ec_ishtp_msg *in = (void *)msg;
+ struct cros_ec_ishtp_msg *out = (void *)response_buffer;
if (in->hdr.channel != CROS_EC_COMMAND) {
CPRINTS("Unknown HECI packet 0x%02x", in->hdr.channel);
@@ -140,7 +146,7 @@ static enum ec_status heci_get_protocol_info(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
DECLARE_HOST_COMMAND(EC_CMD_GET_PROTOCOL_INFO, heci_get_protocol_info,
-EC_VER_MASK(0));
+ EC_VER_MASK(0));
static int cros_ec_ishtp_subsys_initialize(const heci_handle_t heci_handle)
{