]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/char_dev.c
[PATCH] mark f_ops const in the inode
[net-next-2.6.git] / fs / char_dev.c
index 8c6eb04d31e2ab9033a067fc42393d5fa8c38a60..b53dffa46baccc479610503e108e7349f68c7c78 100644 (file)
@@ -250,7 +250,7 @@ int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count,
 }
 
 int register_chrdev(unsigned int major, const char *name,
-                   struct file_operations *fops)
+                   const struct file_operations *fops)
 {
        struct char_device_struct *cd;
        struct cdev *cdev;
@@ -473,7 +473,7 @@ struct cdev *cdev_alloc(void)
        return p;
 }
 
-void cdev_init(struct cdev *cdev, struct file_operations *fops)
+void cdev_init(struct cdev *cdev, const struct file_operations *fops)
 {
        memset(cdev, 0, sizeof *cdev);
        INIT_LIST_HEAD(&cdev->list);