mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
procfs: remove procfs_ from procfs_operations variables
to aglin the naming style with other implementation Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
David Sidrane
parent
149cafe450
commit
c6d210289f
@@ -168,7 +168,7 @@ static const uint8_t g_direntrycount = sizeof(g_direntry) /
|
||||
* with any compiler.
|
||||
*/
|
||||
|
||||
const struct procfs_operations g_smartfs_procfsoperations =
|
||||
const struct procfs_operations g_smartfs_operations =
|
||||
{
|
||||
smartfs_open, /* open */
|
||||
smartfs_close, /* close */
|
||||
@@ -348,7 +348,7 @@ static int smartfs_open(FAR struct file *filep, FAR const char *relpath,
|
||||
*/
|
||||
|
||||
if (((oflags & O_WRONLY) != 0 || (oflags & O_RDONLY) == 0) &&
|
||||
(g_smartfs_procfsoperations.write == NULL))
|
||||
(g_smartfs_operations.write == NULL))
|
||||
{
|
||||
ferr("ERROR: Only O_RDONLY supported\n");
|
||||
return -EACCES;
|
||||
|
||||
Reference in New Issue
Block a user