diff options
| author | Pete Zaitcev <zaitcev@redhat.com> | 2005-12-17 05:34:12 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 16:51:43 -0500 |
| commit | 4fb729f5863c29e4466afb4508186303f46458e7 (patch) | |
| tree | e71b85374227e2854463ef6e64545fda779d9bba | |
| parent | 2c26c9e6b4993a1a1231849feff4b6518a4fc239 (diff) | |
[PATCH] USB: ub 01 rename
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>
| -rw-r--r-- | drivers/block/ub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index ba05e31709d5..813805908dec 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
| @@ -115,7 +115,7 @@ | |||
| 115 | /* | 115 | /* |
| 116 | */ | 116 | */ |
| 117 | 117 | ||
| 118 | #define UB_MINORS_PER_MAJOR 8 | 118 | #define UB_PARTS_PER_LUN 8 |
| 119 | 119 | ||
| 120 | #define UB_MAX_CDB_SIZE 16 /* Corresponds to Bulk */ | 120 | #define UB_MAX_CDB_SIZE 16 /* Corresponds to Bulk */ |
| 121 | 121 | ||
| @@ -2473,14 +2473,14 @@ static int ub_probe_lun(struct ub_dev *sc, int lnum) | |||
| 2473 | ub_revalidate(sc, lun); | 2473 | ub_revalidate(sc, lun); |
| 2474 | 2474 | ||
| 2475 | rc = -ENOMEM; | 2475 | rc = -ENOMEM; |
| 2476 | if ((disk = alloc_disk(UB_MINORS_PER_MAJOR)) == NULL) | 2476 | if ((disk = alloc_disk(UB_PARTS_PER_LUN)) == NULL) |
| 2477 | goto err_diskalloc; | 2477 | goto err_diskalloc; |
| 2478 | 2478 | ||
| 2479 | lun->disk = disk; | 2479 | lun->disk = disk; |
| 2480 | sprintf(disk->disk_name, DRV_NAME "%c", lun->id + 'a'); | 2480 | sprintf(disk->disk_name, DRV_NAME "%c", lun->id + 'a'); |
| 2481 | sprintf(disk->devfs_name, DEVFS_NAME "/%c", lun->id + 'a'); | 2481 | sprintf(disk->devfs_name, DEVFS_NAME "/%c", lun->id + 'a'); |
| 2482 | disk->major = UB_MAJOR; | 2482 | disk->major = UB_MAJOR; |
| 2483 | disk->first_minor = lun->id * UB_MINORS_PER_MAJOR; | 2483 | disk->first_minor = lun->id * UB_PARTS_PER_LUN; |
| 2484 | disk->fops = &ub_bd_fops; | 2484 | disk->fops = &ub_bd_fops; |
| 2485 | disk->private_data = lun; | 2485 | disk->private_data = lun; |
| 2486 | disk->driverfs_dev = &sc->intf->dev; | 2486 | disk->driverfs_dev = &sc->intf->dev; |
