From d7307ef26cb6f6249ff2313ae0505b2060f201e1 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 11 Dec 2022 20:45:20 +0800 Subject: [PATCH] drivers/node: Rename note_register to note_initialize prepare to support the multiple note driver Signed-off-by: Xiang Xiao --- drivers/drivers_initialize.c | 2 +- drivers/note/Make.defs | 2 +- drivers/note/{note_driver.c => note_initialize.c} | 6 +++--- include/nuttx/note/note_driver.h | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename drivers/note/{note_driver.c => note_initialize.c} (96%) diff --git a/drivers/drivers_initialize.c b/drivers/drivers_initialize.c index 5cccfd7d64..f0cf0495bc 100644 --- a/drivers/drivers_initialize.c +++ b/drivers/drivers_initialize.c @@ -85,7 +85,7 @@ void drivers_initialize(void) #endif #if defined(CONFIG_DRIVER_NOTE) - note_register(); /* Non-standard /dev/note */ + note_initialize(); /* Non-standard /dev/note */ #endif #if defined(CONFIG_CLK_RPMSG) diff --git a/drivers/note/Make.defs b/drivers/note/Make.defs index 7c559d9279..68755c7a33 100644 --- a/drivers/note/Make.defs +++ b/drivers/note/Make.defs @@ -26,7 +26,7 @@ endif endif ifeq ($(CONFIG_DRIVER_NOTE),y) - CSRCS += note_driver.c + CSRCS += note_initialize.c endif ifeq ($(CONFIG_DRIVER_NOTERAM),y) diff --git a/drivers/note/note_driver.c b/drivers/note/note_initialize.c similarity index 96% rename from drivers/note/note_driver.c rename to drivers/note/note_initialize.c index 7bdd26a44e..c99e3937bc 100644 --- a/drivers/note/note_driver.c +++ b/drivers/note/note_initialize.c @@ -1,5 +1,5 @@ /**************************************************************************** - * drivers/note/note_driver.c + * drivers/note/note_initialize.c * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with @@ -32,7 +32,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: note_register + * Name: note_initialize * * Description: * Register sched note related drivers at /dev folder that can be used by @@ -46,7 +46,7 @@ * ****************************************************************************/ -int note_register(void) +int note_initialize(void) { int ret = 0; diff --git a/include/nuttx/note/note_driver.h b/include/nuttx/note/note_driver.h index 8f417f6929..a312f2e5af 100644 --- a/include/nuttx/note/note_driver.h +++ b/include/nuttx/note/note_driver.h @@ -42,7 +42,7 @@ #if defined(__KERNEL__) || defined(CONFIG_BUILD_FLAT) /**************************************************************************** - * Name: note_register + * Name: note_initialize * * Description: * Register sched note related drivers at /dev folder that can be used by @@ -57,7 +57,7 @@ ****************************************************************************/ #ifdef CONFIG_DRIVER_NOTE -int note_register(void); +int note_initialize(void); #endif #endif /* defined(__KERNEL__) || defined(CONFIG_BUILD_FLAT) */