From 311282ba6686a9410c7b3123b95b2281c0042f37 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 20 Mar 2018 21:58:17 +0100 Subject: rename file_operations -> cdev_operations Linux also has struct file_operations which are something different. Rename our file_operations to cdev_operations which better matches what we have. Signed-off-by: Sascha Hauer --- common/block.c | 2 +- common/firmware.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/block.c b/common/block.c index e2ba9d4296..55d8d1637e 100644 --- a/common/block.c +++ b/common/block.c @@ -332,7 +332,7 @@ static int block_op_flush(struct cdev *cdev) return writebuffer_flush(blk); } -static struct file_operations block_ops = { +static struct cdev_operations block_ops = { .read = block_op_read, #ifdef CONFIG_BLOCK_WRITE .write = block_op_write, diff --git a/common/firmware.c b/common/firmware.c index 664f9107d0..250fef5378 100644 --- a/common/firmware.c +++ b/common/firmware.c @@ -153,7 +153,7 @@ static int firmware_close(struct cdev *cdev) return 0; } -static struct file_operations firmware_ops = { +static struct cdev_operations firmware_ops = { .open = firmware_open, .write = firmware_write, .close = firmware_close, -- cgit v1.2.3