From 2fb52cf3d902b66b47375895e623a0215347cc83 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 29 Nov 2017 07:05:20 -0600 Subject: [PATCH] Framebuffer Driver: Small modification convention for multi-planar displays (of which there are none). --- drivers/video/fb.c | 4 ++-- include/nuttx/video/fb.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fb.c b/drivers/video/fb.c index 0c054f9174..30baae0bf1 100644 --- a/drivers/video/fb.c +++ b/drivers/video/fb.c @@ -441,7 +441,7 @@ static int fb_ioctl(FAR struct file *filep, int cmd, unsigned long arg) * Register the framebuffer character device at /dev/fbN where N is the * display number if the devices supports only a single plane. If the * hardware supports multiple color planes, then the device will be - * registered at /dev/fbN-M where N is the again display number but M + * registered at /dev/fbN.M where N is the again display number but M * is the display plane. * * Input Parameters: @@ -530,7 +530,7 @@ int fb_register(int display, int plane) } else { - (void)snprintf(devname, 16, "/dev/fb%d-%d", display, plane); + (void)snprintf(devname, 16, "/dev/fb%d.%d", display, plane); } ret = register_driver(devname, &fb_fops, 0666, (FAR void *)fb); diff --git a/include/nuttx/video/fb.h b/include/nuttx/video/fb.h index 0e693c49be..4d6c7f1d49 100644 --- a/include/nuttx/video/fb.h +++ b/include/nuttx/video/fb.h @@ -466,7 +466,7 @@ void up_fbuninitialize(int display); * Register the framebuffer character device at /dev/fbN where N is the * display number if the devices supports only a single plane. If the * hardware supports multiple color planes, then the device will be - * registered at /dev/fbN-M where N is the again display number but M + * registered at /dev/fbN.M where N is the again display number but M * is the display plane. * * Input Parameters: