console: xtensa_sim_console: Cleanup and use static keyword

Cleanup xtensa_sim_console and use static keyword.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2020-02-20 14:11:24 +02:00 committed by Anas Nashif
commit f57f7d162c

View file

@ -49,21 +49,17 @@ extern void __printk_hook_install(int (*fn)(int));
} while ((0)) } while ((0))
#endif #endif
/** /**
*
* @brief Install printk/stdout hook for Xtensa Simulator console output * @brief Install printk/stdout hook for Xtensa Simulator console output
* @return N/A * @return N/A
*/ */
static void xt_sim_console_hook_install(void)
void xt_sim_console_hook_install(void)
{ {
__stdout_hook_install(console_out); __stdout_hook_install(console_out);
__printk_hook_install(console_out); __printk_hook_install(console_out);
} }
/** /**
*
* @brief Initialize the console/debug port * @brief Initialize the console/debug port
* @return 0 if successful, otherwise failed. * @return 0 if successful, otherwise failed.
*/ */
@ -77,8 +73,8 @@ static int xt_sim_console_init(struct device *arg)
/* UART consloe initializes after the UART device itself */ /* UART consloe initializes after the UART device itself */
SYS_INIT(xt_sim_console_init, SYS_INIT(xt_sim_console_init,
#if defined(CONFIG_EARLY_CONSOLE) #if defined(CONFIG_EARLY_CONSOLE)
PRE_KERNEL_1, PRE_KERNEL_1,
#else #else
POST_KERNEL, POST_KERNEL,
#endif #endif
CONFIG_XTENSA_CONSOLE_INIT_PRIORITY); CONFIG_XTENSA_CONSOLE_INIT_PRIORITY);