summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fake_usbc.c4
-rw-r--r--test/fpsensor.mocklist2
-rw-r--r--test/i2c_bitbang.c8
3 files changed, 12 insertions, 2 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c
index dc631997cf..f6207c4c4f 100644
--- a/test/fake_usbc.c
+++ b/test/fake_usbc.c
@@ -259,6 +259,10 @@ void dpm_init(int port)
{
}
+void dpm_mode_exit_complete(int port)
+{
+}
+
void dpm_vdm_acked(int port, enum tcpci_msg_type type, int vdo_count,
uint32_t *vdm)
{
diff --git a/test/fpsensor.mocklist b/test/fpsensor.mocklist
index 7e8240bb8d..3968a04e7e 100644
--- a/test/fpsensor.mocklist
+++ b/test/fpsensor.mocklist
@@ -14,7 +14,7 @@
#elif defined(TEST_BUILD)
/* Mock the sensor detection on dragonclaw v0.2 dev boards since we can't
* otherwise change the detected version in hardware without a rework. See
- * https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/docs/schematics/dragonclaw
+ * https://chromium.googlesource.com/chromiumos/platform/ec/+/HEAD/docs/schematics/dragonclaw
*/
#define CONFIG_TEST_MOCK_LIST MOCK(FPSENSOR_DETECT)
#endif /* BOARD_HOST */
diff --git a/test/i2c_bitbang.c b/test/i2c_bitbang.c
index ab1136a922..dd84c0b83a 100644
--- a/test/i2c_bitbang.c
+++ b/test/i2c_bitbang.c
@@ -11,7 +11,13 @@
#include "util.h"
const struct i2c_port_t i2c_bitbang_ports[] = {
- {"", 0, 100, GPIO_I2C_SCL, GPIO_I2C_SDA}
+ {
+ .name = "",
+ .port = 0,
+ .kbps = 100,
+ .scl = GPIO_I2C_SCL,
+ .sda = GPIO_I2C_SDA
+ }
};
const unsigned int i2c_bitbang_ports_used = 1;