summaryrefslogtreecommitdiff
path: root/zephyr/emul/tcpc/emul_ps8xxx.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/emul/tcpc/emul_ps8xxx.c')
-rw-r--r--zephyr/emul/tcpc/emul_ps8xxx.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/zephyr/emul/tcpc/emul_ps8xxx.c b/zephyr/emul/tcpc/emul_ps8xxx.c
index 57cc2c85f5..90b9ce7af3 100644
--- a/zephyr/emul/tcpc/emul_ps8xxx.c
+++ b/zephyr/emul/tcpc/emul_ps8xxx.c
@@ -3,28 +3,25 @@
* found in the LICENSE file.
*/
-#define DT_DRV_COMPAT cros_ps8xxx_emul
-
-#include <zephyr/logging/log.h>
-LOG_MODULE_REGISTER(ps8xxx_emul, CONFIG_TCPCI_EMUL_LOG_LEVEL);
+#include "driver/tcpm/ps8xxx.h"
+#include "emul/emul_common_i2c.h"
+#include "emul/emul_stub_device.h"
+#include "emul/tcpc/emul_ps8xxx.h"
+#include "emul/tcpc/emul_tcpci.h"
+#include "tcpm/tcpci.h"
#include <zephyr/device.h>
#include <zephyr/drivers/emul.h>
#include <zephyr/drivers/i2c.h>
#include <zephyr/drivers/i2c_emul.h>
+#include <zephyr/logging/log.h>
#include <zephyr/ztest.h>
-#include "tcpm/tcpci.h"
-
-#include "emul/emul_common_i2c.h"
-#include "emul/tcpc/emul_ps8xxx.h"
-#include "emul/tcpc/emul_tcpci.h"
-#include "emul/emul_stub_device.h"
-
-#include "driver/tcpm/ps8xxx.h"
-
+#define DT_DRV_COMPAT cros_ps8xxx_emul
#define PS8XXX_REG_MUX_IN_HPD_ASSERTION MUX_IN_HPD_ASSERTION_REG
+LOG_MODULE_REGISTER(ps8xxx_emul, CONFIG_TCPCI_EMUL_LOG_LEVEL);
+
/** Run-time data used by the emulator */
struct ps8xxx_emul_data {
/** Common I2C data used by "hidden" ports */