USB: Make file operations structs in drivers/usb const.
Making structs const prevents accidental bugs and with the proper debug options they're protected against corruption. Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
f2ebf92c9e
commit
066202dd48
@@ -247,7 +247,7 @@ static int proc_udc_open(struct inode *inode, struct file *file)
|
||||
return single_open(file, proc_udc_show, PDE(inode)->data);
|
||||
}
|
||||
|
||||
static struct file_operations proc_ops = {
|
||||
static const struct file_operations proc_ops = {
|
||||
.open = proc_udc_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
Reference in New Issue
Block a user