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

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 000e4acc0ff139dcad77900f3527168133ca34e2
Author: Wojciech Pietraszewski <[email protected]>
AuthorDate: Wed Jun 26 13:29:24 2024 +0200

    kernel/os_dev: Add parameter names
    
    Adds missing parameter names to function declarations
---
 kernel/os/include/os/os_dev.h | 19 ++++++++++---------
 kernel/os/src/os_dev.c        |  3 ++-
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/kernel/os/include/os/os_dev.h b/kernel/os/include/os/os_dev.h
index 3abc44f14..18689a24d 100644
--- a/kernel/os/include/os/os_dev.h
+++ b/kernel/os/include/os/os_dev.h
@@ -80,13 +80,13 @@ struct os_dev;
  *
  * @return 0 on success, non-zero error code on failure.
  */
-typedef int (*os_dev_init_func_t)(struct os_dev *, void *);
+typedef int (*os_dev_init_func_t)(struct os_dev *dev, void *arg);
 
-typedef int (*os_dev_open_func_t)(struct os_dev *, uint32_t,
-        void *);
-typedef int (*os_dev_suspend_func_t)(struct os_dev *, os_time_t, int);
-typedef int (*os_dev_resume_func_t)(struct os_dev *);
-typedef int (*os_dev_close_func_t)(struct os_dev *);
+typedef int (*os_dev_open_func_t)(struct os_dev *dev, uint32_t timo, void 
*arg);
+typedef int (*os_dev_suspend_func_t)(struct os_dev *dev, os_time_t suspend_t,
+                                     int force);
+typedef int (*os_dev_resume_func_t)(struct os_dev *dev);
+typedef int (*os_dev_close_func_t)(struct os_dev *dev);
 
 /**
  * Device handlers, implementers of device drivers should fill these
@@ -204,7 +204,7 @@ struct os_dev *os_dev_lookup(const char *name);
  *
  * @return 0 on success, non-zero on failure.
  */
-int os_dev_initialize_all(uint8_t);
+int os_dev_initialize_all(uint8_t stage);
 
 
 /**
@@ -216,7 +216,7 @@ int os_dev_initialize_all(uint8_t);
  * @return 0 on success, or a non-zero error code if one of the devices
  *                       returned it.
  */
-int os_dev_suspend_all(os_time_t, uint8_t);
+int os_dev_suspend_all(os_time_t suspend_t, uint8_t force);
 
 /**
  * Resume all the devices that were suspended.
@@ -259,7 +259,8 @@ void os_dev_reset(void);
  * @param walk_func Function to call
  * @aparm arg       Argument to pass to walk_func
  */
-void os_dev_walk(int (*walk_func)(struct os_dev *, void *), void *arg);
+void os_dev_walk(int (*walk_func)(struct os_dev *walk_func_dev,
+                 void *walk_func_arg), void *arg);
 
 #ifdef __cplusplus
 }
diff --git a/kernel/os/src/os_dev.c b/kernel/os/src/os_dev.c
index 3260d63fd..017c7773d 100644
--- a/kernel/os/src/os_dev.c
+++ b/kernel/os/src/os_dev.c
@@ -332,7 +332,8 @@ os_dev_reset(void)
 }
 
 void
-os_dev_walk(int (*walk_func)(struct os_dev *, void *), void *arg)
+os_dev_walk(int (*walk_func)(struct os_dev *walk_func_dev, void 
*walk_func_arg),
+            void *arg)
 {
     struct os_dev *dev;
 

Reply via email to