]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
UBI: constify file operations
authorJan Engelhardt <jengelh@medozas.de>
Sun, 11 Jan 2009 22:55:39 +0000 (23:55 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sun, 18 Jan 2009 12:02:08 +0000 (14:02 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/cdev.c
drivers/mtd/ubi/ubi.h

index c183be99c6cab8651b3b058598f2352376e2b82e..d99935c0f3c6d528f78efe1e31879bcde3ccb9ff 100644 (file)
@@ -1025,20 +1025,20 @@ static int ctrl_cdev_ioctl(struct inode *inode, struct file *file,
 }
 
 /* UBI control character device operations */
-struct file_operations ubi_ctrl_cdev_operations = {
+const struct file_operations ubi_ctrl_cdev_operations = {
        .ioctl = ctrl_cdev_ioctl,
        .owner = THIS_MODULE,
 };
 
 /* UBI character device operations */
-struct file_operations ubi_cdev_operations = {
+const struct file_operations ubi_cdev_operations = {
        .owner = THIS_MODULE,
        .ioctl = ubi_cdev_ioctl,
        .llseek = no_llseek,
 };
 
 /* UBI volume character device operations */
-struct file_operations ubi_vol_cdev_operations = {
+const struct file_operations ubi_vol_cdev_operations = {
        .owner   = THIS_MODULE,
        .open    = vol_cdev_open,
        .release = vol_cdev_release,
index 4a8ec485c91d97c76b2abd8fe63e5f82603d0313..381f0e1d0a74fe59ea9ff857443cc01cc1772072 100644 (file)
@@ -449,9 +449,9 @@ struct ubi_device {
 };
 
 extern struct kmem_cache *ubi_wl_entry_slab;
-extern struct file_operations ubi_ctrl_cdev_operations;
-extern struct file_operations ubi_cdev_operations;
-extern struct file_operations ubi_vol_cdev_operations;
+extern const struct file_operations ubi_ctrl_cdev_operations;
+extern const struct file_operations ubi_cdev_operations;
+extern const struct file_operations ubi_vol_cdev_operations;
 extern struct class *ubi_class;
 extern struct mutex ubi_devices_mutex;