summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/nsp32.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-02-18 20:51:05 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-23 03:11:06 +0100
commit195771c5da10353a97ed33c262dd51ac3671450d (patch)
treec344727120876a04ef163db21781871e2836e925 /drivers/scsi/nsp32.h
parentscsi: mvumi: Stop using the SCSI pointer (diff)
downloadlinux-195771c5da10353a97ed33c262dd51ac3671450d.tar.xz
linux-195771c5da10353a97ed33c262dd51ac3671450d.zip
scsi: nsp32: Stop using the SCSI pointer
Move the SCSI status field to private data. Stop setting the .ptr, .this_residual, .buffer and .buffer_residual SCSI pointer members since no code in this driver reads these members. This patch prepares for removal of the SCSI pointer from struct scsi_cmnd. Link: https://lore.kernel.org/r/20220218195117.25689-38-bvanassche@acm.org Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Reviewed-by: Masanori Goto <gotom@debian.or.jp> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/nsp32.h')
-rw-r--r--drivers/scsi/nsp32.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/nsp32.h b/drivers/scsi/nsp32.h
index ab0726c070f7..924889f8bd37 100644
--- a/drivers/scsi/nsp32.h
+++ b/drivers/scsi/nsp32.h
@@ -534,6 +534,15 @@ typedef struct _nsp32_sync_table {
---PERIOD-- ---OFFSET-- */
#define TO_SYNCREG(period, offset) (((period) & 0x0f) << 4 | ((offset) & 0x0f))
+struct nsp32_cmd_priv {
+ enum sam_status status;
+};
+
+static inline struct nsp32_cmd_priv *nsp32_priv(struct scsi_cmnd *cmd)
+{
+ return scsi_cmd_priv(cmd);
+}
+
typedef struct _nsp32_target {
unsigned char syncreg; /* value for SYNCREG */
unsigned char ackwidth; /* value for ACKWIDTH */