Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d187a88 authored by Jan Engelhardt's avatar Jan Engelhardt Committed by Artem Bityutskiy
Browse files

UBI: constify file operations

parent ade44ce0
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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,
+3 −3
Original line number Diff line number Diff line
@@ -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;