scsi: core: Support retrieving sub-pages of mode pages
Allow scsi_mode_sense() to retrieve sub-pages of mode pages by adding the subpage argument. Change all the current caller sites to specify the subpage 0. Signed-off-by:Damien Le Moal <dlemoal@kernel.org> Reviewed-by:
Hannes Reinecke <hare@suse.de> Reviewed-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
Bart Van Assche <bvanassche@acm.org> Signed-off-by:
Niklas Cassel <niklas.cassel@wdc.com> Link: https://lore.kernel.org/r/20230511011356.227789-7-nks@flawful.org Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com>
Showing
- drivers/scsi/scsi_lib.c 3 additions, 1 deletiondrivers/scsi/scsi_lib.c
- drivers/scsi/scsi_transport_sas.c 1 addition, 1 deletiondrivers/scsi/scsi_transport_sas.c
- drivers/scsi/sd.c 4 additions, 5 deletionsdrivers/scsi/sd.c
- drivers/scsi/sr.c 1 addition, 1 deletiondrivers/scsi/sr.c
- include/scsi/scsi_device.h 4 additions, 4 deletionsinclude/scsi/scsi_device.h
Please register or sign in to comment