USB: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
a1cd7e99b3
commit
0b3f5fe673
|
@ -715,7 +715,7 @@ static unsigned iowarrior_poll(struct file *file, poll_table * wait)
|
||||||
* would use "struct net_driver" instead, and a serial
|
* would use "struct net_driver" instead, and a serial
|
||||||
* device would use "struct tty_driver".
|
* device would use "struct tty_driver".
|
||||||
*/
|
*/
|
||||||
static struct file_operations iowarrior_fops = {
|
static const struct file_operations iowarrior_fops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.write = iowarrior_write,
|
.write = iowarrior_write,
|
||||||
.read = iowarrior_read,
|
.read = iowarrior_read,
|
||||||
|
|
|
@ -1081,7 +1081,7 @@ int mon_bin_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||||
|
|
||||||
#endif /* 0 */
|
#endif /* 0 */
|
||||||
|
|
||||||
static struct file_operations mon_fops_binary = {
|
static const struct file_operations mon_fops_binary = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.open = mon_bin_open,
|
.open = mon_bin_open,
|
||||||
.llseek = no_llseek,
|
.llseek = no_llseek,
|
||||||
|
|
Loading…
Reference in New Issue