diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-21 23:22:01 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-08-13 02:59:28 -0400 |
| commit | 3eb50369c09efb0f668a7f568a7e6f7cf4194cde (patch) | |
| tree | db9a751262bfc3f6a675ea180355a6f7e85f1a85 /drivers/scsi/initio.c | |
| parent | 1fd143c24fb621f063f913cb1e48cc688c7eca15 (diff) | |
| download | linux-3eb50369c09efb0f668a7f568a7e6f7cf4194cde.tar.gz linux-3eb50369c09efb0f668a7f568a7e6f7cf4194cde.tar.bz2 linux-3eb50369c09efb0f668a7f568a7e6f7cf4194cde.zip | |
scsi: switch ->bios_param() to passing gendisk
Instances are passed struct block_device *bdev argument; the only thing
it is used for (if it's used in the first place) is bdev->bd_disk.
Might as well pass that in the first place...
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/scsi/initio.c')
| -rw-r--r-- | drivers/scsi/initio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/initio.c b/drivers/scsi/initio.c index 8648bd965287..ed34ad92c807 100644 --- a/drivers/scsi/initio.c +++ b/drivers/scsi/initio.c @@ -2645,7 +2645,7 @@ static int i91u_bus_reset(struct scsi_cmnd * cmnd) /** * i91u_biosparam - return the "logical geometry * @sdev: SCSI device - * @dev: Matching block device + * @unused: Matching gendisk * @capacity: Sector size of drive * @info_array: Return space for BIOS geometry * @@ -2655,7 +2655,7 @@ static int i91u_bus_reset(struct scsi_cmnd * cmnd) * FIXME: limited to 2^32 sector devices. */ -static int i91u_biosparam(struct scsi_device *sdev, struct block_device *dev, +static int i91u_biosparam(struct scsi_device *sdev, struct gendisk *unused, sector_t capacity, int *info_array) { struct initio_host *host; /* Point to Host adapter control block */ |
