mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
const: constify remaining file_operations
[[email protected]: fix KVM] Signed-off-by: Alexey Dobriyan <[email protected]> Acked-by: Mike Frysinger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1c4115e595
commit
828c09509b
57 changed files with 110 additions and 95 deletions
|
|
@ -993,7 +993,7 @@ skip_io_on_zombie:
|
|||
return retval;
|
||||
}
|
||||
|
||||
static struct file_operations fops = {
|
||||
static const struct file_operations fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = usbtmc_read,
|
||||
.write = usbtmc_write,
|
||||
|
|
|
|||
|
|
@ -875,7 +875,7 @@ printer_ioctl(struct file *fd, unsigned int code, unsigned long arg)
|
|||
}
|
||||
|
||||
/* used after endpoint configuration */
|
||||
static struct file_operations printer_io_operations = {
|
||||
static const struct file_operations printer_io_operations = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = printer_open,
|
||||
.read = printer_read,
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ static int pzl_open(struct inode *inode, struct file *file)
|
|||
return single_open(file, pzl_print, inode->i_private);
|
||||
}
|
||||
|
||||
static struct file_operations di_fops = {
|
||||
static const struct file_operations di_fops = {
|
||||
.open = di_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
|
@ -142,7 +142,7 @@ static struct file_operations di_fops = {
|
|||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static struct file_operations asl_fops = {
|
||||
static const struct file_operations asl_fops = {
|
||||
.open = asl_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
|
@ -150,7 +150,7 @@ static struct file_operations asl_fops = {
|
|||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static struct file_operations pzl_fops = {
|
||||
static const struct file_operations pzl_fops = {
|
||||
.open = pzl_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
|
|
|||
|
|
@ -429,8 +429,7 @@ read_rio(struct file *file, char __user *buffer, size_t count, loff_t * ppos)
|
|||
return read_count;
|
||||
}
|
||||
|
||||
static struct
|
||||
file_operations usb_rio_fops = {
|
||||
static const struct file_operations usb_rio_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.read = read_rio,
|
||||
.write = write_rio,
|
||||
|
|
|
|||
Loading…
Reference in a new issue