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 --- commands/stddev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'commands/stddev.c') diff --git a/commands/stddev.c b/commands/stddev.c index 93da2c7398..4d1b6f5108 100644 --- a/commands/stddev.c +++ b/commands/stddev.c @@ -25,7 +25,7 @@ static ssize_t zero_read(struct cdev *cdev, void *buf, size_t count, loff_t offs return count; } -static struct file_operations zeroops = { +static struct cdev_operations zeroops = { .read = zero_read, .lseek = dev_lseek_default, }; @@ -53,7 +53,7 @@ static ssize_t full_read(struct cdev *cdev, void *buf, size_t count, loff_t offs return count; } -static struct file_operations fullops = { +static struct cdev_operations fullops = { .read = full_read, .lseek = dev_lseek_default, }; @@ -80,7 +80,7 @@ static ssize_t null_write(struct cdev *cdev, const void *buf, size_t count, loff return count; } -static struct file_operations nullops = { +static struct cdev_operations nullops = { .write = null_write, .lseek = dev_lseek_default, }; @@ -108,7 +108,7 @@ static ssize_t prng_read(struct cdev *cdev, void *buf, size_t count, loff_t offs return count; } -static struct file_operations prngops = { +static struct cdev_operations prngops = { .read = prng_read, .lseek = dev_lseek_default, }; -- cgit v1.2.3