@@ -22,7 +22,7 @@ struct internal_ctx {
2222};
2323
2424#ifdef CONFIG_SMF_ANCESTOR_SUPPORT
25- static bool share_paren (const struct smf_state * test_state , const struct smf_state * target_state )
25+ static bool share_parent (const struct smf_state * test_state , const struct smf_state * target_state )
2626{
2727 for (const struct smf_state * state = test_state ; state != NULL ; state = state -> parent ) {
2828 if (target_state == state ) {
@@ -70,7 +70,7 @@ static const struct smf_state *get_lca_of(const struct smf_state *source,
7070 ancestor = ancestor -> parent ) {
7171 if (ancestor == dest ) {
7272 return ancestor -> parent ;
73- } else if (share_paren (dest , ancestor )) {
73+ } else if (share_parent (dest , ancestor )) {
7474 return ancestor ;
7575 }
7676 }
@@ -291,10 +291,10 @@ void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *new_state)
291291#ifdef CONFIG_SMF_ANCESTOR_SUPPORT
292292 const struct smf_state * topmost ;
293293
294- if (share_paren (ctx -> executing , new_state )) {
294+ if (share_parent (ctx -> executing , new_state )) {
295295 /* new state is a parent of where we are now*/
296296 topmost = new_state ;
297- } else if (share_paren (new_state , ctx -> executing )) {
297+ } else if (share_parent (new_state , ctx -> executing )) {
298298 /* we are a parent of the new state */
299299 topmost = ctx -> executing ;
300300 } else {
0 commit comments