mvme147: Scsi_Cmnd to struct scsi_cmnd convertion
Subsystems (2)
PATCH 4/5 mvme147: Scsi_Cmnd to struct scsi_cmnd convertion
From: Henrik Kretzschmar <[email protected]>
Changes obsolete typedef'd Scsi_Cmnd to struct scsi_cmnd.
---
drivers/scsi/mvme147.c +0 -0
@@ -29,7 +29,7 @@return IRQ_HANDLED ;
}
-static int dma_setup (Scsi_Cmnd *cmd, int dir_in) +static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
{
unsigned char flags = 0x01;
unsigned long addr = virt_to_bus(cmd->SCp.ptr);
@@ -57,7 +57,7 @@
return 0;
}-static void dma_stop (struct Scsi_Host *instance, Scsi_Cmnd *SCpnt, +static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
int status)
{
m147_pcc->dma_cntrl = 0;
@@ -112,7 +112,7 @@
return 0;
}-static int mvme147_bus_reset(Scsi_Cmnd *cmd) +static int mvme147_bus_reset(struct scsi_cmnd *cmd)
{
/* FIXME perform bus-specific reset */drivers/scsi/mvme147.h +0 -0
@@ -13,9 +13,9 @@
int mvme147_detect(struct scsi_host_template *);
int mvme147_release(struct Scsi_Host *);
const char *wd33c93_info(void);
-int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); -int wd33c93_abort(Scsi_Cmnd *);
-int wd33c93_reset(Scsi_Cmnd *, unsigned int);
+int wd33c93_queuecommand(struct scsi_cmnd *, void (*done)(struct scsi_cmnd *)); +int wd33c93_abort(struct scsi_cmnd *);
+int wd33c93_reset(struct scsi_cmnd *, unsigned int);
#ifndef CMD_PER_LUN
#define CMD_PER_LUN 2
Quoted 2 lines · Henne
Changes obsolete typedef'd
Scsi_Cmndto structscsi_cmnd.Signed-off-by Henrik Kretzschmar <[email protected]>
Actually, just a single patch for all the coupled drivers would be better, please.
Review
Quoted 6 lines
(quoted diff) +3
-3-int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *)); -int wd33c93_abort(Scsi_Cmnd *); -int wd33c93_reset(Scsi_Cmnd *, unsigned int); +int wd33c93_queuecommand(struct scsi_cmnd *, void (*done)(struct scsi_cmnd *)); +int wd33c93_abort(struct scsi_cmnd *); +int wd33c93_reset(struct scsi_cmnd *, unsigned int);
These prototypes are all unnecessary and can be pulled out of the individual header files. The first two are provided by wd33c93.h and the last one isn't actually in the body of any file.
wd33c93_info is also unused and can go.
Thanks,
James