summaryrefslogtreecommitdiff
path: root/drivers/scsi/wd33c93.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-02-18 22:51:15 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-23 05:11:07 +0300
commitdbb2da557a6a87c88bbb4b1fef037091b57f701b (patch)
treeed44fc6aaccade148bf6277803ce98454508a91d /drivers/scsi/wd33c93.h
parent70d1b920af62a7d065aa7a0d031dd1af44e8b31b (diff)
downloadlinux-dbb2da557a6a87c88bbb4b1fef037091b57f701b.tar.xz
scsi: wd33c93: Move the SCSI pointer to private command data
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-48-bvanassche@acm.org 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>
Diffstat (limited to 'drivers/scsi/wd33c93.h')
-rw-r--r--drivers/scsi/wd33c93.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/wd33c93.h b/drivers/scsi/wd33c93.h
index 2edec34c5a42..b3800baccd2c 100644
--- a/drivers/scsi/wd33c93.h
+++ b/drivers/scsi/wd33c93.h
@@ -262,6 +262,10 @@ struct WD33C93_hostdata {
#endif
};
+static inline struct scsi_pointer *WD33C93_scsi_pointer(struct scsi_cmnd *cmd)
+{
+ return scsi_cmd_priv(cmd);
+}
/* defines for hostdata->chip */