mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
fs: Add g_ prefix for all global file_operations instances
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
308b93b168
commit
51dc67ad5f
@@ -201,7 +201,7 @@ static int tsc2007_poll(FAR struct file *filep, struct pollfd *fds,
|
||||
|
||||
/* This the vtable that supports the character driver interface */
|
||||
|
||||
static const struct file_operations tsc2007_fops =
|
||||
static const struct file_operations g_tsc2007_fops =
|
||||
{
|
||||
tsc2007_open, /* open */
|
||||
tsc2007_close, /* close */
|
||||
@@ -1253,7 +1253,7 @@ int tsc2007_register(FAR struct i2c_master_s *dev,
|
||||
snprintf(devname, sizeof(devname), DEV_FORMAT, minor);
|
||||
iinfo("Registering %s\n", devname);
|
||||
|
||||
ret = register_driver(devname, &tsc2007_fops, 0666, priv);
|
||||
ret = register_driver(devname, &g_tsc2007_fops, 0666, priv);
|
||||
if (ret < 0)
|
||||
{
|
||||
ierr("ERROR: register_driver() failed: %d\n", ret);
|
||||
|
||||
Reference in New Issue
Block a user