Staging: speakup: devsynth: file_operations should be const
authorTracey Dent <tdent48227@gmail.com>
Fri, 8 Oct 2010 10:14:44 +0000 (06:14 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Oct 2010 14:26:25 +0000 (07:26 -0700)
Fixed file_operation struct, so that it is const.

Signed-off-by: Tracey Dent <tdent48227@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/speakup/devsynth.c

index a4656533dd553895db08f177db86082178a6c941..8b7462285d33cfe7dea1d8034a6b85dc48995af6 100644 (file)
@@ -56,7 +56,7 @@ static int speakup_file_release(struct inode *ip, struct file *fp)
        return 0;
 }
 
-static struct file_operations synth_fops = {
+static const struct file_operations synth_fops = {
        .read = speakup_file_read,
        .write = speakup_file_write,
        .open = speakup_file_open,