Skip to content

Commit

Permalink
mtd: mtd_blkdev: Use a different name for block_device_operations var…
Browse files Browse the repository at this point in the history
…iable

struct mtd_blktrans_ops is a type, and mtd_blktrans_ops is a variable.
To improve code clarity it's better to not use the same names,
so we just change the latter.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  • Loading branch information
Ezequiel Garcia authored and Artem Bityutskiy committed Nov 21, 2012
1 parent 064a769 commit 9329c5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mtd/mtd_blkdevs.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ static int blktrans_ioctl(struct block_device *bdev, fmode_t mode,
return ret;
}

static const struct block_device_operations mtd_blktrans_ops = {
static const struct block_device_operations mtd_block_ops = {
.owner = THIS_MODULE,
.open = blktrans_open,
.release = blktrans_release,
Expand Down Expand Up @@ -401,7 +401,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new)
gd->private_data = new;
gd->major = tr->major;
gd->first_minor = (new->devnum) << tr->part_bits;
gd->fops = &mtd_blktrans_ops;
gd->fops = &mtd_block_ops;

if (tr->part_bits)
if (new->devnum < 26)
Expand Down

0 comments on commit 9329c5e

Please sign in to comment.