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

xiaoxiang 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 2460ff4f78 drivers/note: rename /dev/note to /dev/note/ram
2460ff4f78 is described below

commit 2460ff4f789e0155392975067f1e63b58e65da8a
Author: yinshengkai <yinsheng...@xiaomi.com>
AuthorDate: Wed Dec 14 12:53:09 2022 +0800

    drivers/note: rename /dev/note to /dev/note/ram
    
    Signed-off-by: yinshengkai <yinsheng...@xiaomi.com>
---
 drivers/note/noteram_driver.c       | 4 ++--
 include/nuttx/note/noteram_driver.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/note/noteram_driver.c b/drivers/note/noteram_driver.c
index c09906773b..09a3ecf49b 100644
--- a/drivers/note/noteram_driver.c
+++ b/drivers/note/noteram_driver.c
@@ -881,7 +881,7 @@ void sched_note_add(FAR const void *note, size_t notelen)
  * Name: noteram_register
  *
  * Description:
- *   Register a serial driver at /dev/note that can be used by an
+ *   Register a serial driver at /dev/note/ram that can be used by an
  *   application to read data from the circular note buffer.
  *
  * Input Parameters:
@@ -894,5 +894,5 @@ void sched_note_add(FAR const void *note, size_t notelen)
 
 int noteram_register(void)
 {
-  return register_driver("/dev/note", &g_noteram_fops, 0666, NULL);
+  return register_driver("/dev/note/ram", &g_noteram_fops, 0666, NULL);
 }
diff --git a/include/nuttx/note/noteram_driver.h 
b/include/nuttx/note/noteram_driver.h
index 2b4bcacecf..784ecefb1f 100644
--- a/include/nuttx/note/noteram_driver.h
+++ b/include/nuttx/note/noteram_driver.h
@@ -93,7 +93,7 @@ struct noteram_get_taskname_s
  * Name: noteram_register
  *
  * Description:
- *   Register RAM note driver at /dev/note that can be used by an
+ *   Register RAM note driver at /dev/note/ram that can be used by an
  *   application to read note data from the circular note buffer.
  *
  * Input Parameters:

Reply via email to