scsi: initio: Stop using the SCSI pointer

Set .cmd_size in the SCSI host template instead of using the SCSI pointer
from struct scsi_cmnd. This patch prepares for removal of the SCSI pointer
from struct scsi_cmnd.

Link: https://lore.kernel.org/r/20220218195117.25689-27-bvanassche@acm.org
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Bart Van Assche
2022-02-18 11:50:54 -08:00
committed by Martin K. Petersen
parent db22de3eb0
commit 09cc102bb4
2 changed files with 17 additions and 6 deletions

View File

@@ -640,3 +640,12 @@ typedef struct _NVRAM {
#define SCSI_RESET_HOST_RESET 0x200
#define SCSI_RESET_ACTION 0xff
struct initio_cmd_priv {
dma_addr_t sense_dma_addr;
dma_addr_t sglist_dma_addr;
};
static inline struct initio_cmd_priv *initio_priv(struct scsi_cmnd *cmd)
{
return scsi_cmd_priv(cmd);
}