summaryrefslogtreecommitdiff
path: root/common/i2c_controller.c
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2023-04-17 14:17:50 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-17 23:28:50 +0000
commit2ed86ebbcb85842532c9e80e5a82711a1caab1cc (patch)
treeea345579ec42fbfeab68164d53399054dd0d6123 /common/i2c_controller.c
parent187f87afaa39ed24c0a6fa30782b6379ed05fed1 (diff)
downloadchrome-ec-2ed86ebbcb85842532c9e80e5a82711a1caab1cc.tar.gz
zephyr: Eliminate pointer from SYS_INIT functions
The upstream change https://github.com/zephyrproject-rtos/zephyr/pull/51217 modified the function signature for the SYS_INIT call, eliminating the unused device pointer. Run the Zephyr provided script ./zephyr/scripts/utils/migrate_sys_init.py to update all callers. BUG=b:278595739 BRANCH=none TEST=zmake build -a Cq-Depend: chromium:4422804 Change-Id: I881bc536cef43a7c3ac4bc5eb3ce1893237bbd1f Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4437049 Reviewed-by: Tristan Honscheid <honscheid@google.com>
Diffstat (limited to 'common/i2c_controller.c')
-rw-r--r--common/i2c_controller.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/i2c_controller.c b/common/i2c_controller.c
index 3332f771f6..f84b329d8d 100644
--- a/common/i2c_controller.c
+++ b/common/i2c_controller.c
@@ -52,10 +52,8 @@ BUILD_ASSERT(ARRAY_SIZE(port_mutex) < 32);
static uint8_t port_protected[I2C_PORT_COUNT + I2C_BITBANG_PORT_COUNT];
#ifdef CONFIG_ZEPHYR
-static int init_port_mutex(const struct device *dev)
+static int init_port_mutex(void)
{
- ARG_UNUSED(dev);
-
for (int i = 0; i < ARRAY_SIZE(port_mutex); ++i)
k_mutex_init(port_mutex + i);