mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
examples/module: Add g_ prefix to chardev_fops
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
fd42d811c2
commit
0786563bba
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ static ssize_t chardev_write(FAR struct file *filep, FAR const char *buffer,
|
|||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
static const struct file_operations chardev_fops =
|
||||
static const struct file_operations g_chardev_fops =
|
||||
{
|
||||
NULL, /* open */
|
||||
NULL, /* close */
|
||||
|
|
@ -130,5 +130,5 @@ int module_initialize(FAR struct mod_info_s *modinfo)
|
|||
modinfo->exports = NULL;
|
||||
modinfo->nexports = 0;
|
||||
|
||||
return register_driver("/dev/chardev", &chardev_fops, 0666, NULL);
|
||||
return register_driver("/dev/chardev", &g_chardev_fops, 0666, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue