diff options
author | Bart Van Assche <bvanassche@acm.org> | 2022-02-18 20:51:15 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-02-23 03:11:07 +0100 |
commit | dbb2da557a6a87c88bbb4b1fef037091b57f701b (patch) | |
tree | ed44fc6aaccade148bf6277803ce98454508a91d /drivers/scsi/wd33c93.h | |
parent | scsi: wd719x: Stop using the SCSI pointer (diff) | |
download | linux-dbb2da557a6a87c88bbb4b1fef037091b57f701b.tar.xz linux-dbb2da557a6a87c88bbb4b1fef037091b57f701b.zip |
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.h | 4 |
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 */ |