aboutsummaryrefslogtreecommitdiff
path: root/nuttx/drivers/sensors/qencoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/sensors/qencoder.c')
-rw-r--r--nuttx/drivers/sensors/qencoder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/drivers/sensors/qencoder.c b/nuttx/drivers/sensors/qencoder.c
index edbe8255c..84bc15813 100644
--- a/nuttx/drivers/sensors/qencoder.c
+++ b/nuttx/drivers/sensors/qencoder.c
@@ -365,7 +365,13 @@ static int qe_ioctl(FAR struct file *filep, int cmd, unsigned long arg)
* lower - An instance of the lower half interface
*
* Returned Value:
- * Zero (OK) on success; a negated errno value on failure.
+ * Zero (OK) on success; a negated errno value on failure. The following
+ * possible error values may be returned (most are returned by
+ * register_driver()):
+ *
+ * EINVAL - 'path' is invalid for this operation
+ * EEXIST - An inode already exists at 'path'
+ * ENOMEM - Failed to allocate in-memory resources for the operation
*
****************************************************************************/