@@ -136,7 +136,7 @@ static bool smf_execute_all_entry_actions(struct smf_ctx *const ctx,
136
136
* @param target The run actions of this target's ancestors are executed
137
137
* @return true if the state machine should terminate, else false
138
138
*/
139
- static bool smf_execute_ancestor_run_actions (struct smf_ctx * ctx )
139
+ static bool smf_execute_ancestor_run_actions (struct smf_ctx * const ctx )
140
140
{
141
141
struct internal_ctx * const internal = (void * )& ctx -> internal ;
142
142
/* Execute all run actions in reverse order */
@@ -213,7 +213,7 @@ static bool smf_execute_all_exit_actions(struct smf_ctx *const ctx, const struct
213
213
*
214
214
* @param ctx State machine context.
215
215
*/
216
- static void smf_clear_internal_state (struct smf_ctx * ctx )
216
+ static void smf_clear_internal_state (struct smf_ctx * const ctx )
217
217
{
218
218
struct internal_ctx * const internal = (void * )& ctx -> internal ;
219
219
@@ -223,7 +223,7 @@ static void smf_clear_internal_state(struct smf_ctx *ctx)
223
223
internal -> new_state = false;
224
224
}
225
225
226
- void smf_set_initial (struct smf_ctx * ctx , const struct smf_state * init_state )
226
+ void smf_set_initial (struct smf_ctx * const ctx , const struct smf_state * init_state )
227
227
{
228
228
#ifdef CONFIG_SMF_INITIAL_TRANSITION
229
229
/*
@@ -376,7 +376,7 @@ void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *new_state)
376
376
#endif
377
377
}
378
378
379
- void smf_set_terminate (struct smf_ctx * ctx , int32_t val )
379
+ void smf_set_terminate (struct smf_ctx * const ctx , int32_t val )
380
380
{
381
381
struct internal_ctx * const internal = (void * )& ctx -> internal ;
382
382
0 commit comments