This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f215bf6c67b timer: rename tick_settimeouot to tick_settimeout
f215bf6c67b is described below

commit f215bf6c67b9907aac9b57ec197685a528d7c44d
Author: xucheng5 <[email protected]>
AuthorDate: Tue Nov 26 13:43:32 2024 +0800

    timer: rename tick_settimeouot to tick_settimeout
    
    Fix the misspelling of the tick timeout API name
    (tick_settimeouot -> tick_settimeout) for clarity and correctness.
    
    This corrects a typographical error in the function/config name that
    could lead to confusion and incorrect usage. No functional logic is
    changed by this rename.
    
    Signed-off-by: zhaohaiyang1 <[email protected]>
---
 include/nuttx/timers/timer.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/nuttx/timers/timer.h b/include/nuttx/timers/timer.h
index 3b055db007c..87128c89153 100644
--- a/include/nuttx/timers/timer.h
+++ b/include/nuttx/timers/timer.h
@@ -111,7 +111,7 @@
   ((l)->ops->settimeout ? (l)->ops->settimeout(l,t) : timer_settimeout(l,t))
 
 #define TIMER_TICK_SETTIMEOUT(l,t) \
-  ((l)->ops->tick_setttimeout ? (l)->ops->tick_setttimeout(l,t) : 
timer_tick_settimeout(l,t))
+  ((l)->ops->tick_settimeout ? (l)->ops->tick_settimeout(l,t) : 
timer_tick_settimeout(l,t))
 
 #define TIMER_MAXTIMEOUT(l,t) \
   ((l)->ops->maxtimeout ? (l)->ops->maxtimeout(l,t) : timer_maxtimeout(l,t))
@@ -209,7 +209,7 @@ struct timer_ops_s
 
   /* Set a new tick timeout value of (and reset the timer) */
 
-  CODE int (*tick_setttimeout)(FAR struct timer_lowerhalf_s *lower,
+  CODE int (*tick_settimeout)(FAR struct timer_lowerhalf_s *lower,
                                uint32_t timeout);
 
   /* Get the maximum supported tick timeout value */
@@ -276,12 +276,12 @@ static inline
 int timer_settimeout(FAR struct timer_lowerhalf_s *lower,
                      uint32_t timeout)
 {
-  if (lower->ops->tick_setttimeout == NULL)
+  if (lower->ops->tick_settimeout == NULL)
     {
       return -ENOTSUP;
     }
 
-  return lower->ops->tick_setttimeout(lower, USEC2TICK(timeout));
+  return lower->ops->tick_settimeout(lower, USEC2TICK(timeout));
 }
 
 static inline

Reply via email to