|
@@ -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,
|