Skip to content

Commit

Permalink
UIO: constify function pointer tables
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Jan Engelhardt authored and Greg Kroah-Hartman committed Jan 25, 2008
1 parent ae72cdd commit 4f01469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/uio/uio.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ struct uio_device {

static int uio_major;
static DEFINE_IDR(uio_idr);
static struct file_operations uio_fops;
static const struct file_operations uio_fops;

/* UIO class infrastructure */
static struct uio_class {
Expand Down Expand Up @@ -508,7 +508,7 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma)
}
}

static struct file_operations uio_fops = {
static const struct file_operations uio_fops = {
.owner = THIS_MODULE,
.open = uio_open,
.release = uio_release,
Expand Down

0 comments on commit 4f01469

Please sign in to comment.