@@ -136,7 +136,7 @@ static bool smf_execute_all_entry_actions(struct smf_ctx *const ctx,
136136 * @param target The run actions of this target's ancestors are executed
137137 * @return true if the state machine should terminate, else false
138138 */
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 )
140140{
141141 struct internal_ctx * const internal = (void * )& ctx -> internal ;
142142 /* 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
213213 *
214214 * @param ctx State machine context.
215215 */
216- static void smf_clear_internal_state (struct smf_ctx * ctx )
216+ static void smf_clear_internal_state (struct smf_ctx * const ctx )
217217{
218218 struct internal_ctx * const internal = (void * )& ctx -> internal ;
219219
@@ -223,7 +223,7 @@ static void smf_clear_internal_state(struct smf_ctx *ctx)
223223 internal -> new_state = false;
224224}
225225
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 )
227227{
228228#ifdef CONFIG_SMF_INITIAL_TRANSITION
229229 /*
@@ -376,7 +376,7 @@ void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *new_state)
376376#endif
377377}
378378
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 )
380380{
381381 struct internal_ctx * const internal = (void * )& ctx -> internal ;
382382
0 commit comments