summaryrefslogtreecommitdiff
path: root/drivers/scsi/mac53c94.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-02-18 11:50:59 -0800
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-22 21:11:05 -0500
commitcb2b62082c3ab5d6f34264c6e9bbd9e84389d9a5 (patch)
treeaccae22948543ef1477a406a56191a533580f588 /drivers/scsi/mac53c94.h
parent8c0156b10e4d59787380f5dbaba0c113d5df92b1 (diff)
downloadlwn-cb2b62082c3ab5d6f34264c6e9bbd9e84389d9a5.tar.gz
lwn-cb2b62082c3ab5d6f34264c6e9bbd9e84389d9a5.zip
scsi: mac53c94: 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-32-bvanassche@acm.org Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> 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/mac53c94.h')
-rw-r--r--drivers/scsi/mac53c94.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/mac53c94.h b/drivers/scsi/mac53c94.h
index 5df6e81f78a8..37d7d30f42ef 100644
--- a/drivers/scsi/mac53c94.h
+++ b/drivers/scsi/mac53c94.h
@@ -212,4 +212,15 @@ struct mac53c94_regs {
#define CF4_TEST 0x02
#define CF4_BBTE 0x01
+struct mac53c94_cmd_priv {
+ struct scsi_pointer scsi_pointer;
+};
+
+static inline struct scsi_pointer *mac53c94_scsi_pointer(struct scsi_cmnd *cmd)
+{
+ struct mac53c94_cmd_priv *mcmd = scsi_cmd_priv(cmd);
+
+ return &mcmd->scsi_pointer;
+}
+
#endif /* _MAC53C94_H */