Skip to content

Commit

Permalink
OSS: constify function pointer tables
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jan Engelhardt authored and Linus Torvalds committed Feb 8, 2008
1 parent 03a4482 commit c8cece8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sound/oss/swarm_cs4297a.c
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ static int cs4297a_ioctl_mixdev(struct inode *inode, struct file *file,
// ******************************************************************************************
// Mixer file operations struct.
// ******************************************************************************************
static /*const */ struct file_operations cs4297a_mixer_fops = {
static const struct file_operations cs4297a_mixer_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = cs4297a_ioctl_mixdev,
Expand Down Expand Up @@ -2491,7 +2491,7 @@ static int cs4297a_open(struct inode *inode, struct file *file)
// ******************************************************************************************
// Wave (audio) file operations struct.
// ******************************************************************************************
static /*const */ struct file_operations cs4297a_audio_fops = {
static const struct file_operations cs4297a_audio_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = cs4297a_read,
Expand Down
4 changes: 2 additions & 2 deletions sound/oss/trident.c
Original file line number Diff line number Diff line change
Expand Up @@ -2878,7 +2878,7 @@ trident_release(struct inode *inode, struct file *file)
return 0;
}

static /*const */ struct file_operations trident_audio_fops = {
static const struct file_operations trident_audio_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = trident_read,
Expand Down Expand Up @@ -4104,7 +4104,7 @@ trident_ioctl_mixdev(struct inode *inode, struct file *file, unsigned int cmd,
return codec->mixer_ioctl(codec, cmd, arg);
}

static /*const */ struct file_operations trident_mixer_fops = {
static const struct file_operations trident_mixer_fops = {
.owner = THIS_MODULE,
.llseek = no_llseek,
.ioctl = trident_ioctl_mixdev,
Expand Down

0 comments on commit c8cece8

Please sign in to comment.