Skip to content

Commit

Permalink
[PATCH] USB: ub 01 rename
Browse files Browse the repository at this point in the history
Rename misleading UB_MINORS_PER_MAJOR into UB_PARTS_PER_LUN.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Jan 4, 2006
1 parent 2c26c9e commit 4fb729f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/block/ub.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
/*
*/

#define UB_MINORS_PER_MAJOR 8
#define UB_PARTS_PER_LUN 8

#define UB_MAX_CDB_SIZE 16 /* Corresponds to Bulk */

Expand Down Expand Up @@ -2473,14 +2473,14 @@ static int ub_probe_lun(struct ub_dev *sc, int lnum)
ub_revalidate(sc, lun);

rc = -ENOMEM;
if ((disk = alloc_disk(UB_MINORS_PER_MAJOR)) == NULL)
if ((disk = alloc_disk(UB_PARTS_PER_LUN)) == NULL)
goto err_diskalloc;

lun->disk = disk;
sprintf(disk->disk_name, DRV_NAME "%c", lun->id + 'a');
sprintf(disk->devfs_name, DEVFS_NAME "/%c", lun->id + 'a');
disk->major = UB_MAJOR;
disk->first_minor = lun->id * UB_MINORS_PER_MAJOR;
disk->first_minor = lun->id * UB_PARTS_PER_LUN;
disk->fops = &ub_bd_fops;
disk->private_data = lun;
disk->driverfs_dev = &sc->intf->dev;
Expand Down

0 comments on commit 4fb729f

Please sign in to comment.