summaryrefslogtreecommitdiff
path: root/zephyr/include
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 15:30:53 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-01 08:45:34 +0000
commitca6284c251d55bb8f40731346dcbd392647f95ff (patch)
treeaa426ba223afacc1a6656b7068128c3da22f85f3 /zephyr/include
parent843b6f0249f0200bd826140c4be755e992228f6d (diff)
downloadchrome-ec-ca6284c251d55bb8f40731346dcbd392647f95ff.tar.gz
zephyr/include/emul/tcpc/emul_tcpci.h: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: Id293078358da998b172333cd054cb67453181fb3 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3730726 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'zephyr/include')
-rw-r--r--zephyr/include/emul/tcpc/emul_tcpci.h26
1 files changed, 11 insertions, 15 deletions
diff --git a/zephyr/include/emul/tcpc/emul_tcpci.h b/zephyr/include/emul/tcpc/emul_tcpci.h
index 81fea3edeb..b1bc8be926 100644
--- a/zephyr/include/emul/tcpc/emul_tcpci.h
+++ b/zephyr/include/emul/tcpc/emul_tcpci.h
@@ -133,10 +133,7 @@ enum tcpci_emul_ops_resp {
};
/** Revisions supported by TCPCI emaluator */
-enum tcpci_emul_rev {
- TCPCI_EMUL_REV1_0_VER1_0 = 0,
- TCPCI_EMUL_REV2_0_VER1_1
-};
+enum tcpci_emul_rev { TCPCI_EMUL_REV1_0_VER1_0 = 0, TCPCI_EMUL_REV2_0_VER1_1 };
/** Status of TX message send to TCPCI emulator partner */
enum tcpci_emul_tx_status {
@@ -166,9 +163,9 @@ struct tcpci_emul_dev_ops {
* @return TCPCI_EMUL_DONE to immedietly return success
* @return TCPCI_EMUL_ERROR to immedietly return error
*/
- enum tcpci_emul_ops_resp (*read_byte)(const struct emul *emul,
- const struct tcpci_emul_dev_ops *ops,
- int reg, uint8_t *val, int bytes);
+ enum tcpci_emul_ops_resp (*read_byte)(
+ const struct emul *emul, const struct tcpci_emul_dev_ops *ops,
+ int reg, uint8_t *val, int bytes);
/**
* @brief Function called for each byte of write message
@@ -183,9 +180,9 @@ struct tcpci_emul_dev_ops {
* @return TCPCI_EMUL_DONE to immedietly return success
* @return TCPCI_EMUL_ERROR to immedietly return error
*/
- enum tcpci_emul_ops_resp (*write_byte)(const struct emul *emul,
- const struct tcpci_emul_dev_ops *ops,
- int reg, uint8_t val, int bytes);
+ enum tcpci_emul_ops_resp (*write_byte)(
+ const struct emul *emul, const struct tcpci_emul_dev_ops *ops,
+ int reg, uint8_t val, int bytes);
/**
* @brief Function called on the end of write message
@@ -199,9 +196,9 @@ struct tcpci_emul_dev_ops {
* @return TCPCI_EMUL_DONE to immedietly return success
* @return TCPCI_EMUL_ERROR to immedietly return error
*/
- enum tcpci_emul_ops_resp (*handle_write)(const struct emul *emul,
- const struct tcpci_emul_dev_ops *ops,
- int reg, int msg_len);
+ enum tcpci_emul_ops_resp (*handle_write)(
+ const struct emul *emul, const struct tcpci_emul_dev_ops *ops,
+ int reg, int msg_len);
/**
* @brief Function called on reset
@@ -227,8 +224,7 @@ struct tcpci_emul_partner_ops {
void (*transmit)(const struct emul *emul,
const struct tcpci_emul_partner_ops *ops,
const struct tcpci_emul_msg *tx_msg,
- enum tcpci_msg_type type,
- int retry);
+ enum tcpci_msg_type type, int retry);
/**
* @brief Function called when control settings change to allow partner