Skip to content

Commit 6539641

Browse files
Henrik KretzschmarJames Bottomley
authored andcommitted
[SCSI] wd33c93: Scsi_Cmnd convertion
Changes obsolete typedef'd Scsi_Cmnd to struct scsi_cmnd. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent a506b44 commit 6539641

9 files changed

Lines changed: 18 additions & 34 deletions

File tree

‎drivers/scsi/a2091.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static irqreturn_t a2091_intr (int irq, void *_instance, struct pt_regs *fp)
4040
return IRQ_HANDLED;
4141
}
4242

43-
static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
43+
static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
4444
{
4545
unsigned short cntr = CNTR_PDMD | CNTR_INTEN;
4646
unsigned long addr = virt_to_bus(cmd->SCp.ptr);
@@ -115,7 +115,7 @@ static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
115115
return 0;
116116
}
117117

118-
static void dma_stop (struct Scsi_Host *instance, Scsi_Cmnd *SCpnt,
118+
static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
119119
int status)
120120
{
121121
/* disable SCSI interrupts */
@@ -217,7 +217,7 @@ int __init a2091_detect(struct scsi_host_template *tpnt)
217217
return num_a2091;
218218
}
219219

220-
static int a2091_bus_reset(Scsi_Cmnd *cmd)
220+
static int a2091_bus_reset(struct scsi_cmnd *cmd)
221221
{
222222
/* FIXME perform bus-specific reset */
223223

‎drivers/scsi/a2091.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
int a2091_detect(struct scsi_host_template *);
1515
int a2091_release(struct Scsi_Host *);
16-
const char *wd33c93_info(void);
17-
int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
18-
int wd33c93_abort(Scsi_Cmnd *);
19-
int wd33c93_reset(Scsi_Cmnd *, unsigned int);
2016

2117
#ifndef CMD_PER_LUN
2218
#define CMD_PER_LUN 2

‎drivers/scsi/a3000.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static irqreturn_t a3000_intr (int irq, void *dummy, struct pt_regs *fp)
4444
return IRQ_NONE;
4545
}
4646

47-
static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
47+
static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
4848
{
4949
unsigned short cntr = CNTR_PDMD | CNTR_INTEN;
5050
unsigned long addr = virt_to_bus(cmd->SCp.ptr);
@@ -110,8 +110,8 @@ static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
110110
return 0;
111111
}
112112

113-
static void dma_stop (struct Scsi_Host *instance, Scsi_Cmnd *SCpnt,
114-
int status)
113+
static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
114+
int status)
115115
{
116116
/* disable SCSI interrupts */
117117
unsigned short cntr = CNTR_PDMD;
@@ -205,7 +205,7 @@ int __init a3000_detect(struct scsi_host_template *tpnt)
205205
return 0;
206206
}
207207

208-
static int a3000_bus_reset(Scsi_Cmnd *cmd)
208+
static int a3000_bus_reset(struct scsi_cmnd *cmd)
209209
{
210210
/* FIXME perform bus-specific reset */
211211

‎drivers/scsi/a3000.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
int a3000_detect(struct scsi_host_template *);
1515
int a3000_release(struct Scsi_Host *);
16-
const char *wd33c93_info(void);
17-
int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
18-
int wd33c93_abort(Scsi_Cmnd *);
19-
int wd33c93_reset(Scsi_Cmnd *, unsigned int);
2016

2117
#ifndef CMD_PER_LUN
2218
#define CMD_PER_LUN 2

‎drivers/scsi/gvp11.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void gvp11_setup (char *str, int *ints)
4747
gvp11_xfer_mask = ints[1];
4848
}
4949

50-
static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
50+
static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
5151
{
5252
unsigned short cntr = GVP11_DMAC_INT_ENABLE;
5353
unsigned long addr = virt_to_bus(cmd->SCp.ptr);
@@ -142,8 +142,8 @@ static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
142142
return 0;
143143
}
144144

145-
static void dma_stop (struct Scsi_Host *instance, Scsi_Cmnd *SCpnt,
146-
int status)
145+
static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
146+
int status)
147147
{
148148
/* stop DMA */
149149
DMA(instance)->SP_DMA = 1;
@@ -341,7 +341,7 @@ int __init gvp11_detect(struct scsi_host_template *tpnt)
341341
return num_gvp11;
342342
}
343343

344-
static int gvp11_bus_reset(Scsi_Cmnd *cmd)
344+
static int gvp11_bus_reset(struct scsi_cmnd *cmd)
345345
{
346346
/* FIXME perform bus-specific reset */
347347

‎drivers/scsi/gvp11.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313

1414
int gvp11_detect(struct scsi_host_template *);
1515
int gvp11_release(struct Scsi_Host *);
16-
const char *wd33c93_info(void);
17-
int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
18-
int wd33c93_abort(Scsi_Cmnd *);
19-
int wd33c93_reset(Scsi_Cmnd *, unsigned int);
2016

2117
#ifndef CMD_PER_LUN
2218
#define CMD_PER_LUN 2

‎drivers/scsi/mvme147.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static irqreturn_t mvme147_intr (int irq, void *dummy, struct pt_regs *fp)
2929
return IRQ_HANDLED;
3030
}
3131

32-
static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
32+
static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
3333
{
3434
unsigned char flags = 0x01;
3535
unsigned long addr = virt_to_bus(cmd->SCp.ptr);
@@ -57,7 +57,7 @@ static int dma_setup (Scsi_Cmnd *cmd, int dir_in)
5757
return 0;
5858
}
5959

60-
static void dma_stop (struct Scsi_Host *instance, Scsi_Cmnd *SCpnt,
60+
static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
6161
int status)
6262
{
6363
m147_pcc->dma_cntrl = 0;
@@ -112,7 +112,7 @@ int mvme147_detect(struct scsi_host_template *tpnt)
112112
return 0;
113113
}
114114

115-
static int mvme147_bus_reset(Scsi_Cmnd *cmd)
115+
static int mvme147_bus_reset(struct scsi_cmnd *cmd)
116116
{
117117
/* FIXME perform bus-specific reset */
118118

‎drivers/scsi/mvme147.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212

1313
int mvme147_detect(struct scsi_host_template *);
1414
int mvme147_release(struct Scsi_Host *);
15-
const char *wd33c93_info(void);
16-
int wd33c93_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
17-
int wd33c93_abort(Scsi_Cmnd *);
18-
int wd33c93_reset(Scsi_Cmnd *, unsigned int);
1915

2016
#ifndef CMD_PER_LUN
2117
#define CMD_PER_LUN 2

‎drivers/scsi/sgiwd93.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static irqreturn_t sgiwd93_intr(int irq, void *dev_id, struct pt_regs *regs)
9797
}
9898

9999
static inline
100-
void fill_hpc_entries(struct hpc_chunk *hcp, Scsi_Cmnd *cmd, int datainp)
100+
void fill_hpc_entries(struct hpc_chunk *hcp, struct scsi_cmnd *cmd, int datainp)
101101
{
102102
unsigned long len = cmd->SCp.this_residual;
103103
void *addr = cmd->SCp.ptr;
@@ -129,7 +129,7 @@ void fill_hpc_entries(struct hpc_chunk *hcp, Scsi_Cmnd *cmd, int datainp)
129129
hcp->desc.cntinfo = HPCDMA_EOX;
130130
}
131131

132-
static int dma_setup(Scsi_Cmnd *cmd, int datainp)
132+
static int dma_setup(struct scsi_cmnd *cmd, int datainp)
133133
{
134134
struct ip22_hostdata *hdata = HDATA(cmd->device->host);
135135
struct hpc3_scsiregs *hregs =
@@ -163,7 +163,7 @@ static int dma_setup(Scsi_Cmnd *cmd, int datainp)
163163
return 0;
164164
}
165165

166-
static void dma_stop(struct Scsi_Host *instance, Scsi_Cmnd *SCpnt,
166+
static void dma_stop(struct Scsi_Host *instance, struct scsi_cmnd *SCpnt,
167167
int status)
168168
{
169169
struct ip22_hostdata *hdata = HDATA(instance);
@@ -305,7 +305,7 @@ static int sgiwd93_release(struct Scsi_Host *instance)
305305
return 1;
306306
}
307307

308-
static int sgiwd93_bus_reset(Scsi_Cmnd *cmd)
308+
static int sgiwd93_bus_reset(struct scsi_cmnd *cmd)
309309
{
310310
/* FIXME perform bus-specific reset */
311311

0 commit comments

Comments
 (0)