file_operations: get back C89 compatible initializer

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2022-01-10 16:51:17 +02:00
committed by Xiang Xiao
parent 2447b7bd9a
commit a743fed63d
120 changed files with 868 additions and 675 deletions
+8 -8
View File
@@ -41,15 +41,15 @@
static const struct file_operations fifo_fops =
{
pipecommon_open, /* open */
pipecommon_close, /* close */
pipecommon_read, /* read */
pipecommon_write, /* write */
0, /* seek */
pipecommon_ioctl, /* ioctl */
pipecommon_poll, /* poll */
pipecommon_open, /* open */
pipecommon_close, /* close */
pipecommon_read, /* read */
pipecommon_write, /* write */
NULL, /* seek */
pipecommon_ioctl, /* ioctl */
pipecommon_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
pipecommon_unlink /* unlink */
, pipecommon_unlink /* unlink */
#endif
};
+8 -8
View File
@@ -61,15 +61,15 @@ static int pipe_close(FAR struct file *filep);
static const struct file_operations pipe_fops =
{
pipecommon_open, /* open */
pipe_close, /* close */
pipecommon_read, /* read */
pipecommon_write, /* write */
0, /* seek */
pipecommon_ioctl, /* ioctl */
pipecommon_poll, /* poll */
pipecommon_open, /* open */
pipe_close, /* close */
pipecommon_read, /* read */
pipecommon_write, /* write */
NULL, /* seek */
pipecommon_ioctl, /* ioctl */
pipecommon_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
pipecommon_unlink /* unlink */
, pipecommon_unlink /* unlink */
#endif
};