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
@@ -136,7 +136,7 @@ static int mac802154dev_ioctl(FAR struct file *filep, int cmd,
* Private Data
****************************************************************************/
static const struct file_operations mac802154dev_fops =
static const struct file_operations g_mac802154dev_fops =
{
mac802154dev_open, /* open */
mac802154dev_close, /* close */
@@ -862,7 +862,7 @@ int mac802154dev_register(MACHANDLE mac, int minor)
/* Register the mac character driver */
ret = register_driver(devname, &mac802154dev_fops, 0666, dev);
ret = register_driver(devname, &g_mac802154dev_fops, 0666, dev);
if (ret < 0)
{
wlerr("ERROR: register_driver failed: %d\n", ret);