fs: Add g_ prefix for all global file_operations instances

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-04-22 22:43:07 +08:00
committed by Alin Jerpelea
parent 308b93b168
commit 51dc67ad5f
55 changed files with 111 additions and 108 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ static ssize_t syslog_chardev_write(FAR struct file *filep,
* Private Data
****************************************************************************/
static const struct file_operations syslog_fops =
static const struct file_operations g_syslog_fops =
{
NULL, /* open */
NULL, /* close */
@@ -91,7 +91,7 @@ static ssize_t syslog_chardev_write(FAR struct file *filep,
void syslog_register(void)
{
register_driver("/dev/log", &syslog_fops, 0222, NULL);
register_driver("/dev/log", &g_syslog_fops, 0222, NULL);
}
#endif /* CONFIG_SYSLOG_CHARDEV */