diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2009-01-11 17:55:39 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-01-18 07:02:08 -0500 |
commit | 4d187a88d3ee3be6a1a0b6859eb00f70e1601b5e (patch) | |
tree | 8b85414089fc5fc3610a186e0daa3c283da47776 | |
parent | ade44ce07c9316351ae321051221c9bad3af3a44 (diff) |
UBI: constify file operations
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 6 | ||||
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index c183be99c6ca..d99935c0f3c6 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c | |||
@@ -1025,20 +1025,20 @@ static int ctrl_cdev_ioctl(struct inode *inode, struct file *file, | |||
1025 | } | 1025 | } |
1026 | 1026 | ||
1027 | /* UBI control character device operations */ | 1027 | /* UBI control character device operations */ |
1028 | struct file_operations ubi_ctrl_cdev_operations = { | 1028 | const struct file_operations ubi_ctrl_cdev_operations = { |
1029 | .ioctl = ctrl_cdev_ioctl, | 1029 | .ioctl = ctrl_cdev_ioctl, |
1030 | .owner = THIS_MODULE, | 1030 | .owner = THIS_MODULE, |
1031 | }; | 1031 | }; |
1032 | 1032 | ||
1033 | /* UBI character device operations */ | 1033 | /* UBI character device operations */ |
1034 | struct file_operations ubi_cdev_operations = { | 1034 | const struct file_operations ubi_cdev_operations = { |
1035 | .owner = THIS_MODULE, | 1035 | .owner = THIS_MODULE, |
1036 | .ioctl = ubi_cdev_ioctl, | 1036 | .ioctl = ubi_cdev_ioctl, |
1037 | .llseek = no_llseek, | 1037 | .llseek = no_llseek, |
1038 | }; | 1038 | }; |
1039 | 1039 | ||
1040 | /* UBI volume character device operations */ | 1040 | /* UBI volume character device operations */ |
1041 | struct file_operations ubi_vol_cdev_operations = { | 1041 | const struct file_operations ubi_vol_cdev_operations = { |
1042 | .owner = THIS_MODULE, | 1042 | .owner = THIS_MODULE, |
1043 | .open = vol_cdev_open, | 1043 | .open = vol_cdev_open, |
1044 | .release = vol_cdev_release, | 1044 | .release = vol_cdev_release, |
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 4a8ec485c91d..381f0e1d0a74 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -449,9 +449,9 @@ struct ubi_device { | |||
449 | }; | 449 | }; |
450 | 450 | ||
451 | extern struct kmem_cache *ubi_wl_entry_slab; | 451 | extern struct kmem_cache *ubi_wl_entry_slab; |
452 | extern struct file_operations ubi_ctrl_cdev_operations; | 452 | extern const struct file_operations ubi_ctrl_cdev_operations; |
453 | extern struct file_operations ubi_cdev_operations; | 453 | extern const struct file_operations ubi_cdev_operations; |
454 | extern struct file_operations ubi_vol_cdev_operations; | 454 | extern const struct file_operations ubi_vol_cdev_operations; |
455 | extern struct class *ubi_class; | 455 | extern struct class *ubi_class; |
456 | extern struct mutex ubi_devices_mutex; | 456 | extern struct mutex ubi_devices_mutex; |
457 | 457 | ||