drivers/node: Rename note_register to note_initialize

prepare to support the multiple note driver

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-11 20:45:20 +08:00 committed by Petro Karashchenko
parent 8f3c425067
commit d7307ef26c
4 changed files with 7 additions and 7 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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;

View File

@ -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) */