sched/hrtimer: Add const for hrtimer argument.

The callback function can not modify the hrtimer.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
ouyangxiangzhen
2026-01-07 11:30:54 +08:00
committed by Xiang Xiao
parent 1d6068f6fb
commit 740f518083
+1 -1
View File
@@ -66,7 +66,7 @@ typedef struct hrtimer_node_s hrtimer_node_t;
*/
typedef CODE uint64_t
(*hrtimer_cb)(FAR hrtimer_t *hrtimer, uint64_t expired);
(*hrtimer_cb)(FAR const hrtimer_t *hrtimer, uint64_t expired);
/* Red-black tree node used to order hrtimers by expiration time */