jlaitine commented on code in PR #8000:
URL: https://github.com/apache/nuttx/pull/8000#discussion_r1059866272


##########
drivers/video/video.c:
##########
@@ -3200,6 +3198,22 @@ static int video_ioctl(FAR struct file *filep, int cmd, 
unsigned long arg)
   return ret;
 }
 
+static int video_mmap(FAR struct file *filep, FAR void **addr, off_t start,
+                      size_t length)
+{
+  FAR struct inode *inode = filep->f_inode;
+  FAR video_mng_t  *priv  = (FAR video_mng_t *)inode->i_private;
+  int ret = -EINVAL;
+
+  if (addr)
+    {
+      *addr = priv->video_inf.bufheap;

Review Comment:
   This is the original:
   ```
   -      case FIOC_MMAP:
   -        DEBUGASSERT((FAR void **)(uintptr_t)arg != NULL);
   -        *(FAR void **)((uintptr_t)arg) = priv->video_inf.bufheap;
   -        ret = OK;
   -
   -        break;
   ```
   So not changing the functionality here..



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to