diff options
Diffstat (limited to 'zephyr/test/system/test_system.c')
-rw-r--r-- | zephyr/test/system/test_system.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/zephyr/test/system/test_system.c b/zephyr/test/system/test_system.c index bb4f245644..e8eba44fc8 100644 --- a/zephyr/test/system/test_system.c +++ b/zephyr/test/system/test_system.c @@ -4,7 +4,7 @@ */ #include <device.h> -#include <drivers/cros_bbram.h> +#include <drivers/bbram.h> #include <logging/log.h> #include <ztest.h> @@ -21,8 +21,8 @@ LOG_MODULE_REGISTER(test); static char mock_data[64] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@"; -static int mock_bbram_read(const struct device *unused, int offset, int size, - uint8_t *data) +static int mock_bbram_read(const struct device *unused, size_t offset, + size_t size, uint8_t *data) { if (offset < 0 || offset + size >= ARRAY_SIZE(mock_data)) return -1; @@ -30,15 +30,8 @@ static int mock_bbram_read(const struct device *unused, int offset, int size, return EC_SUCCESS; } -static const struct cros_bbram_driver_api bbram_api = { - .ibbr = NULL, - .reset_ibbr = NULL, - .vsby = NULL, - .reset_vsby = NULL, - .vcc1 = NULL, - .reset_vcc1 = NULL, +static const struct bbram_driver_api bbram_api = { .read = mock_bbram_read, - .write = NULL, }; static const struct device bbram_dev_instance = { |