summaryrefslogtreecommitdiff
path: root/common/motion_sense.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/motion_sense.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/motion_sense.c')
-rw-r--r--common/motion_sense.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index d2a51fc2a4..546034c7e2 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -76,10 +76,8 @@ static atomic_t odr_event_required;
__maybe_unused static int fifo_int_enabled;
#ifdef CONFIG_ZEPHYR
-static int init_sensor_mutex(const struct device *dev)
+static int init_sensor_mutex(void)
{
- ARG_UNUSED(dev);
-
k_mutex_init(&g_sensor_mutex);
return 0;