drivers/timers: Fix oneshot callback arg.

This commit fixed the oneshot callback arg problem.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
ouyangxiangzhen
2025-11-20 14:21:45 +08:00
committed by Xiang Xiao
parent b540618e9f
commit 0d0c02205b
+1 -1
View File
@@ -312,7 +312,7 @@ int oneshot_register(FAR const char *devname,
priv->od_lower = lower;
lower->callback = oneshot_callback;
lower->arg = lower;
lower->arg = priv;
nxmutex_init(&priv->od_lock);