diff --git a/drivers/timers/timer.c b/drivers/timers/timer.c index 7440d9e4ead..d1d82d6fb3a 100644 --- a/drivers/timers/timer.c +++ b/drivers/timers/timer.c @@ -550,17 +550,16 @@ void timer_unregister(FAR void *handle) * and may NOT be used by appliction code. * * Input parameters: - * handle - This is the handle that was returned by timer_register() - * newcallback - The new timer interrupt callback - * oldcallback - The previous timer interrupt callback (if any) - * arg - Argument to be provided with the callback + * handle - This is the handle that was returned by timer_register() + * callback - The new timer interrupt callback + * arg - Argument to be provided with the callback * * Returned Value: * None * ****************************************************************************/ -int timer_setcallback(FAR void *handle, tccb_t newcallback, FAR void *arg) +int timer_setcallback(FAR void *handle, tccb_t callback, FAR void *arg) { FAR struct timer_upperhalf_s *upper; FAR struct timer_lowerhalf_s *lower; @@ -578,7 +577,7 @@ int timer_setcallback(FAR void *handle, tccb_t newcallback, FAR void *arg) { /* Yes.. Defer the hander attachment to the lower half driver */ - lower->ops->setcallback(lower, newcallback, arg); + lower->ops->setcallback(lower, callback, arg); return OK; } diff --git a/sched/irq/irq_csection.c b/sched/irq/irq_csection.c index 660dae6a622..63b17507a6f 100644 --- a/sched/irq/irq_csection.c +++ b/sched/irq/irq_csection.c @@ -164,7 +164,7 @@ irqstate_t enter_critical_section(void) } else { - /* First call enter_critical_section. Test assumptions, then + /* First call to enter_critical_section. Test assumptions, then * wait until we have the lock. */