diff options
author | Bart Van Assche <bvanassche@acm.org> | 2021-10-07 13:28:27 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-16 21:28:46 -0400 |
commit | caffd3ad966e2b47227e7f375287737a9f53cbf0 (patch) | |
tree | b41c99cb8cf0b3cbd62fc4fd39c86de65ed1f062 /drivers/scsi/arm/fas216.h | |
parent | f8ab27d9649440a4fa6e77bbea939a62fd44df27 (diff) | |
download | lwn-caffd3ad966e2b47227e7f375287737a9f53cbf0.tar.gz lwn-caffd3ad966e2b47227e7f375287737a9f53cbf0.zip |
scsi: fas216: Introduce struct fas216_cmd_priv
Introduce a structure with driver-private data per SCSI command. This data
structure will be used by the next patch to store a function pointer.
Link: https://lore.kernel.org/r/20211007202923.2174984-33-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/arm/fas216.h')
-rw-r--r-- | drivers/scsi/arm/fas216.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/arm/fas216.h b/drivers/scsi/arm/fas216.h index 847413ce14cf..abf960487314 100644 --- a/drivers/scsi/arm/fas216.h +++ b/drivers/scsi/arm/fas216.h @@ -310,6 +310,16 @@ typedef struct { unsigned long magic_end; } FAS216_Info; +/* driver-private data per SCSI command. */ +struct fas216_cmd_priv { + void (*scsi_done)(struct scsi_cmnd *cmd); +}; + +static inline struct fas216_cmd_priv *fas216_cmd_priv(struct scsi_cmnd *cmd) +{ + return scsi_cmd_priv(cmd); +} + /* Function: int fas216_init (struct Scsi_Host *instance) * Purpose : initialise FAS/NCR/AMD SCSI structures. * Params : instance - a driver-specific filled-out structure |