Various initialization functions in configs/: Change /dev/slcd to /dev/slcd0 for consistency

This commit is contained in:
Alan Carvalho de Assis
2018-11-25 14:00:20 -06:00
committed by Gregory Nutt
parent 2474eda421
commit 803aadd5b7
8 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -655,7 +655,7 @@ Configuration sub-directories
Application Configuration -> Examples Application Configuration -> Examples
CONFIG_EXAMPLES_SLCD=y CONFIG_EXAMPLES_SLCD=y
CONFIG_EXAMPLES_SLCD_DEVNAME="/dev/slcd" CONFIG_EXAMPLES_SLCD_DEVNAME="/dev/slcd0"
CONFIG_EXAMPLES_SLCD_BUFSIZE=64 CONFIG_EXAMPLES_SLCD_BUFSIZE=64
Application Configuration -> NSH Library Application Configuration -> NSH Library
+1 -1
View File
@@ -350,7 +350,7 @@ int sam_sdinitialize(int minor);
* *
* Description: * Description:
* Initialize the SAM4L Xplained Pro LCD hardware and register the character * Initialize the SAM4L Xplained Pro LCD hardware and register the character
* driver as /dev/slcd. * driver as /dev/slcd0.
* *
****************************************************************************/ ****************************************************************************/
+1 -1
View File
@@ -103,7 +103,7 @@
int board_app_initialize(uintptr_t arg) int board_app_initialize(uintptr_t arg)
{ {
#if defined(CONFIG_SAM34_LCDCA) && defined(CONFIG_SAM4L_XPLAINED_SLCD1MODULE) #if defined(CONFIG_SAM34_LCDCA) && defined(CONFIG_SAM4L_XPLAINED_SLCD1MODULE)
/* Initialize the SLCD and register the SLCD device as /dev/slcd */ /* Initialize the SLCD and register the SLCD device as /dev/slcd0 */
{ {
int ret = sam_slcd_initialize(); int ret = sam_slcd_initialize();
+2 -2
View File
@@ -1159,7 +1159,7 @@ static int slcd_poll(FAR struct file *filep, FAR struct pollfd *fds,
* *
* Description: * Description:
* Initialize the SAM4L Xplained Pro LCD hardware and register the character * Initialize the SAM4L Xplained Pro LCD hardware and register the character
* driver as /dev/slcd. * driver as /dev/slcd0.
* *
****************************************************************************/ ****************************************************************************/
@@ -1288,7 +1288,7 @@ int sam_slcd_initialize(void)
/* Register the LCD device driver */ /* Register the LCD device driver */
ret = register_driver("/dev/slcd", &g_slcdops, 0644, &g_slcdstate); ret = register_driver("/dev/slcd0", &g_slcdops, 0644, &g_slcdstate);
g_slcdstate.initialized = true; g_slcdstate.initialized = true;
/* Turn on the backlight */ /* Turn on the backlight */
+1 -1
View File
@@ -189,7 +189,7 @@ int stm32_bringup(void)
#endif #endif
#ifdef CONFIG_LCD_ST7032 #ifdef CONFIG_LCD_ST7032
ret = stm32_st7032init("/dev/disp0"); ret = stm32_st7032init("/dev/slcd0");
if (ret < 0) if (ret < 0)
{ {
syslog(LOG_ERR, "ERROR: st7032_register failed: %d\n", ret); syslog(LOG_ERR, "ERROR: st7032_register failed: %d\n", ret);
+1 -1
View File
@@ -294,7 +294,7 @@ extern "C"
* *
* Description: * Description:
* Initialize the STM32L-Discovery LCD hardware and register the character * Initialize the STM32L-Discovery LCD hardware and register the character
* driver as /dev/slcd. * driver as /dev/slcd0.
* *
****************************************************************************/ ****************************************************************************/
+1 -1
View File
@@ -81,7 +81,7 @@ int board_app_initialize(uintptr_t arg)
int ret = OK; int ret = OK;
#ifdef CONFIG_STM32_LCD #ifdef CONFIG_STM32_LCD
/* Initialize the SLCD and register the SLCD device as /dev/slcd */ /* Initialize the SLCD and register the SLCD device as /dev/slcd0 */
ret = stm32_slcd_initialize(); ret = stm32_slcd_initialize();
if (ret != OK) if (ret != OK)
+2 -2
View File
@@ -1462,7 +1462,7 @@ static int slcd_poll(FAR struct file *filep, FAR struct pollfd *fds,
* *
* Description: * Description:
* Initialize the STM32L-Discovery LCD hardware and register the character * Initialize the STM32L-Discovery LCD hardware and register the character
* driver as /dev/slcd. * driver as /dev/slcd0.
* *
****************************************************************************/ ****************************************************************************/
@@ -1569,7 +1569,7 @@ int stm32_slcd_initialize(void)
/* Register the LCD device driver */ /* Register the LCD device driver */
ret = register_driver("/dev/slcd", &g_slcdops, 0644, &g_slcdstate); ret = register_driver("/dev/slcd0", &g_slcdops, 0644, &g_slcdstate);
g_slcdstate.initialized = true; g_slcdstate.initialized = true;
/* Then clear the display */ /* Then clear the display */