xiaoxiang781216 commented on a change in pull request #1377:
URL: https://github.com/apache/incubator-nuttx/pull/1377#discussion_r484884535
##########
File path: arch/arm/src/common/arm_initialize.c
##########
@@ -163,6 +164,10 @@ void up_initialize(void)
note_register(); /* Non-standard /dev/note */
#endif
+#if defined(CONFIG_DRIVER_NOTECTL)
+ notectl_register(); /* Non-standard /dev/notectl */
Review comment:
with the PR: https://github.com/apache/incubator-nuttx/pull/1731
we can move notectl_register to drivers/note/note_driver.c, to avoid touch
the arch file every time the new transport or filter drivrer is added.
##########
File path: drivers/note/note_driver.c
##########
@@ -384,6 +472,69 @@ static ssize_t note_read(FAR struct file *filep, FAR char
*buffer,
return retlen;
}
+/****************************************************************************
+ * Name: note_ioctl
+ ****************************************************************************/
+
+static int note_ioctl(struct file *filep, int cmd, unsigned long arg)
Review comment:
@YuuichiNakamura could you review PR
https://github.com/apache/incubator-nuttx/pull/1731? which make the driver
structure more clean.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]