@@ -22,7 +22,7 @@ struct internal_ctx {
22
22
};
23
23
24
24
#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 )
26
26
{
27
27
for (const struct smf_state * state = test_state ; state != NULL ; state = state -> parent ) {
28
28
if (target_state == state ) {
@@ -70,7 +70,7 @@ static const struct smf_state *get_lca_of(const struct smf_state *source,
70
70
ancestor = ancestor -> parent ) {
71
71
if (ancestor == dest ) {
72
72
return ancestor -> parent ;
73
- } else if (share_paren (dest , ancestor )) {
73
+ } else if (share_parent (dest , ancestor )) {
74
74
return ancestor ;
75
75
}
76
76
}
@@ -291,10 +291,10 @@ void smf_set_state(struct smf_ctx *const ctx, const struct smf_state *new_state)
291
291
#ifdef CONFIG_SMF_ANCESTOR_SUPPORT
292
292
const struct smf_state * topmost ;
293
293
294
- if (share_paren (ctx -> executing , new_state )) {
294
+ if (share_parent (ctx -> executing , new_state )) {
295
295
/* new state is a parent of where we are now*/
296
296
topmost = new_state ;
297
- } else if (share_paren (new_state , ctx -> executing )) {
297
+ } else if (share_parent (new_state , ctx -> executing )) {
298
298
/* we are a parent of the new state */
299
299
topmost = ctx -> executing ;
300
300
} else {
0 commit comments