zephyr/include/emul/tcpc/emul_tcpci_partner_common.h: Format with clang-format
BRANCH=none
TEST=none
/** Timeout for other side to respond to PD message */
#define TCPCI_PARTNER_RESPONSE_TIMEOUT_MS 30
-#define TCPCI_PARTNER_RESPONSE_TIMEOUT \
- K_MSEC(TCPCI_PARTNER_RESPONSE_TIMEOUT_MS)
+#define TCPCI_PARTNER_RESPONSE_TIMEOUT K_MSEC(TCPCI_PARTNER_RESPONSE_TIMEOUT_MS)
/** Timeout for source to transition to requested state after accept */
#define TCPCI_PARTNER_TRANSITION_TIMEOUT_MS 550
#define TCPCI_PARTNER_TRANSITION_TIMEOUT \
@@ -265,8 +264,7 @@ struct tcpci_partner_extension_ops {
* @param ext Pointer to partner extension
* @param common_data Pointer to TCPCI partner emulator
*/
- void (*hard_reset)(
- struct tcpci_partner_extension *ext,
+ void (*hard_reset)(struct tcpci_partner_extension *ext,
struct tcpci_partner_data *common_data);
/**
@@ -275,8 +273,7 @@ struct tcpci_partner_extension_ops {
* @param ext Pointer to partner extension
* @param common_data Pointer to TCPCI partner emulator
*/
- void (*soft_reset)(
- struct tcpci_partner_extension *ext,
+ void (*soft_reset)(struct tcpci_partner_extension *ext,
struct tcpci_partner_data *common_data);
/**
@@ -286,8 +283,7 @@ struct tcpci_partner_extension_ops {
* @param ext Pointer to partner extension
* @param common_data Pointer to TCPCI partner emulator
*/
- void (*disconnect)(
- struct tcpci_partner_extension *ext,
+ void (*disconnect)(struct tcpci_partner_extension *ext,
struct tcpci_partner_data *common_data);
/**
@@ -300,8 +296,7 @@ struct tcpci_partner_extension_ops {
* @return Negative value on error
* @return 0 on success
*/
- int (*connect)(
- struct tcpci_partner_extension *ext,
+ int (*connect)(struct tcpci_partner_extension *ext,
struct tcpci_partner_data *common_data);
};
@@ -360,8 +355,7 @@ int tcpci_partner_send_msg(struct tcpci_partner_data *data,
* @return negative on failure
*/
int tcpci_partner_send_control_msg(struct tcpci_partner_data *data,
- enum pd_ctrl_msg_type type,
- uint64_t delay);
+ enum pd_ctrl_msg_type type, uint64_t delay);
/**
* @brief Send data message with optional delay. Data objects are copied to
@@ -380,9 +374,8 @@ int tcpci_partner_send_control_msg(struct tcpci_partner_data *data,
* @return negative on failure
*/
int tcpci_partner_send_data_msg(struct tcpci_partner_data *data,
- enum pd_data_msg_type type,
- uint32_t *data_obj, int data_obj_num,
- uint64_t delay);
+ enum pd_data_msg_type type, uint32_t *data_obj,
+ int data_obj_num, uint64_t delay);
/**
* @brief Send an extended PD message to the port partner
