summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-03-20 21:58:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-06 14:43:32 +0200
commit311282ba6686a9410c7b3123b95b2281c0042f37 (patch)
treefe105973c2e4389a083b8ede6eef6e52ed42c76f /drivers/mtd/ubi
parentbd9ad3a602295fb9aa8882fbf27c54288b150d5f (diff)
downloadbarebox-311282ba6686a9410c7b3123b95b2281c0042f37.tar.gz
barebox-311282ba6686a9410c7b3123b95b2281c0042f37.tar.xz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd/ubi')
-rw-r--r--drivers/mtd/ubi/barebox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/barebox.c b/drivers/mtd/ubi/barebox.c
index d67e566db6..65f5456455 100644
--- a/drivers/mtd/ubi/barebox.c
+++ b/drivers/mtd/ubi/barebox.c
@@ -218,7 +218,7 @@ static int ubi_volume_cdev_ioctl(struct cdev *cdev, int cmd, void *buf)
return err;
}
-static struct file_operations ubi_volume_fops = {
+static struct cdev_operations ubi_volume_fops = {
.open = ubi_volume_cdev_open,
.close = ubi_volume_cdev_close,
.read = ubi_volume_cdev_read,
@@ -467,7 +467,7 @@ static int ubi_cdev_ioctl(struct cdev *cdev, int cmd, void *buf)
return 0;
}
-static struct file_operations ubi_fops = {
+static struct cdev_operations ubi_fops = {
.ioctl = ubi_cdev_ioctl,
};