scsi: simplify scsi_partsize
authorChristoph Hellwig <hch@lst.de>
Tue, 24 Mar 2020 07:25:17 +0000 (08:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Mar 2020 13:57:07 +0000 (07:57 -0600)
commita10183d744fb4e3f8aa38086c2b5e6fdf0171a1a
tree7b0854f33bef3918471384d5b993839be10ebfda
parent26ae3533a0e666052afdf4cb6010a0d594c0e3f4
scsi: simplify scsi_partsize

Call scsi_bios_ptable from scsi_partsize instead of requiring boilerplate
code in the callers.  Also switch the calling convention to match that
of the ->bios_param instances calling this function, and use true/false
for the return value instead of the weird -1 convention.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/scsi/scsi_mid_low_api.txt
drivers/scsi/aic7xxx/aic79xx_osm.c
drivers/scsi/aic7xxx/aic7xxx_osm.c
drivers/scsi/arcmsr/arcmsr_hba.c
drivers/scsi/megaraid.c
drivers/scsi/scsicam.c
include/scsi/scsicam.h