Skip to content

Commit 0d06b28

Browse files
HenneJames Bottomley
authored andcommitted
[SCSI] dpt: whitespace cleanup
Remove some trailing whitespaces and some replace whitespaces with tabs. Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: "Salyzyn, Mark" <mark_salyzyn@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent 023ae61 commit 0d06b28

3 files changed

Lines changed: 27 additions & 27 deletions

File tree

‎drivers/scsi/dpt/dpti_i2o.h‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* Tunable parameters first
3232
*/
3333

34-
/* How many different OSM's are we allowing */
34+
/* How many different OSM's are we allowing */
3535
#define MAX_I2O_MODULES 64
3636

3737
#define I2O_EVT_CAPABILITY_OTHER 0x01
@@ -63,7 +63,7 @@ struct i2o_message
6363
u16 size;
6464
u32 target_tid:12;
6565
u32 init_tid:12;
66-
u32 function:8;
66+
u32 function:8;
6767
u32 initiator_context;
6868
/* List follows */
6969
};
@@ -77,7 +77,7 @@ struct i2o_device
7777

7878
char dev_name[8]; /* linux /dev name if available */
7979
i2o_lct_entry lct_data;/* Device LCT information */
80-
u32 flags;
80+
u32 flags;
8181
struct proc_dir_entry* proc_entry; /* /proc dir */
8282
struct adpt_device *owner;
8383
struct _adpt_hba *controller; /* Controlling IOP */
@@ -86,7 +86,7 @@ struct i2o_device
8686
/*
8787
* Each I2O controller has one of these objects
8888
*/
89-
89+
9090
struct i2o_controller
9191
{
9292
char name[16];
@@ -111,9 +111,9 @@ struct i2o_sys_tbl_entry
111111
u32 iop_id:12;
112112
u32 reserved2:20;
113113
u16 seg_num:12;
114-
u16 i2o_version:4;
115-
u8 iop_state;
116-
u8 msg_type;
114+
u16 i2o_version:4;
115+
u8 iop_state;
116+
u8 msg_type;
117117
u16 frame_size;
118118
u16 reserved3;
119119
u32 last_changed;
@@ -124,14 +124,14 @@ struct i2o_sys_tbl_entry
124124

125125
struct i2o_sys_tbl
126126
{
127-
u8 num_entries;
128-
u8 version;
129-
u16 reserved1;
127+
u8 num_entries;
128+
u8 version;
129+
u16 reserved1;
130130
u32 change_ind;
131131
u32 reserved2;
132132
u32 reserved3;
133133
struct i2o_sys_tbl_entry iops[0];
134-
};
134+
};
135135

136136
/*
137137
* I2O classes / subclasses
@@ -146,7 +146,7 @@ struct i2o_sys_tbl
146146
/* Class code names
147147
* (from v1.5 Table 6-1 Class Code Assignments.)
148148
*/
149-
149+
150150
#define I2O_CLASS_EXECUTIVE 0x000
151151
#define I2O_CLASS_DDM 0x001
152152
#define I2O_CLASS_RANDOM_BLOCK_STORAGE 0x010
@@ -166,7 +166,7 @@ struct i2o_sys_tbl
166166

167167
/* Rest of 0x092 - 0x09f reserved for peer-to-peer classes
168168
*/
169-
169+
170170
#define I2O_CLASS_MATCH_ANYCLASS 0xffffffff
171171

172172
/* Subclasses
@@ -175,7 +175,7 @@ struct i2o_sys_tbl
175175
#define I2O_SUBCLASS_i960 0x001
176176
#define I2O_SUBCLASS_HDM 0x020
177177
#define I2O_SUBCLASS_ISM 0x021
178-
178+
179179
/* Operation functions */
180180

181181
#define I2O_PARAMS_FIELD_GET 0x0001
@@ -219,7 +219,7 @@ struct i2o_sys_tbl
219219
/*
220220
* Messaging API values
221221
*/
222-
222+
223223
#define I2O_CMD_ADAPTER_ASSIGN 0xB3
224224
#define I2O_CMD_ADAPTER_READ 0xB2
225225
#define I2O_CMD_ADAPTER_RELEASE 0xB5
@@ -284,16 +284,16 @@ struct i2o_sys_tbl
284284
#define I2O_PRIVATE_MSG 0xFF
285285

286286
/*
287-
* Init Outbound Q status
287+
* Init Outbound Q status
288288
*/
289-
289+
290290
#define I2O_CMD_OUTBOUND_INIT_IN_PROGRESS 0x01
291291
#define I2O_CMD_OUTBOUND_INIT_REJECTED 0x02
292292
#define I2O_CMD_OUTBOUND_INIT_FAILED 0x03
293293
#define I2O_CMD_OUTBOUND_INIT_COMPLETE 0x04
294294

295295
/*
296-
* I2O Get Status State values
296+
* I2O Get Status State values
297297
*/
298298

299299
#define ADAPTER_STATE_INITIALIZING 0x01
@@ -303,7 +303,7 @@ struct i2o_sys_tbl
303303
#define ADAPTER_STATE_OPERATIONAL 0x08
304304
#define ADAPTER_STATE_FAILED 0x10
305305
#define ADAPTER_STATE_FAULTED 0x11
306-
306+
307307
/* I2O API function return values */
308308

309309
#define I2O_RTN_NO_ERROR 0
@@ -321,9 +321,9 @@ struct i2o_sys_tbl
321321

322322
/* Reply message status defines for all messages */
323323

324-
#define I2O_REPLY_STATUS_SUCCESS 0x00
325-
#define I2O_REPLY_STATUS_ABORT_DIRTY 0x01
326-
#define I2O_REPLY_STATUS_ABORT_NO_DATA_TRANSFER 0x02
324+
#define I2O_REPLY_STATUS_SUCCESS 0x00
325+
#define I2O_REPLY_STATUS_ABORT_DIRTY 0x01
326+
#define I2O_REPLY_STATUS_ABORT_NO_DATA_TRANSFER 0x02
327327
#define I2O_REPLY_STATUS_ABORT_PARTIAL_TRANSFER 0x03
328328
#define I2O_REPLY_STATUS_ERROR_DIRTY 0x04
329329
#define I2O_REPLY_STATUS_ERROR_NO_DATA_TRANSFER 0x05
@@ -338,7 +338,7 @@ struct i2o_sys_tbl
338338

339339
#define I2O_PARAMS_STATUS_SUCCESS 0x00
340340
#define I2O_PARAMS_STATUS_BAD_KEY_ABORT 0x01
341-
#define I2O_PARAMS_STATUS_BAD_KEY_CONTINUE 0x02
341+
#define I2O_PARAMS_STATUS_BAD_KEY_CONTINUE 0x02
342342
#define I2O_PARAMS_STATUS_BUFFER_FULL 0x03
343343
#define I2O_PARAMS_STATUS_BUFFER_TOO_SMALL 0x04
344344
#define I2O_PARAMS_STATUS_FIELD_UNREADABLE 0x05
@@ -390,7 +390,7 @@ struct i2o_sys_tbl
390390
#define I2O_CLAIM_MANAGEMENT 0x02000000
391391
#define I2O_CLAIM_AUTHORIZED 0x03000000
392392
#define I2O_CLAIM_SECONDARY 0x04000000
393-
393+
394394
/* Message header defines for VersionOffset */
395395
#define I2OVER15 0x0001
396396
#define I2OVER20 0x0002

‎drivers/scsi/dpt/dpti_ioctl.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ typedef struct {
9999
uCHAR eataVersion; /* EATA Version */
100100
uLONG cpLength; /* EATA Command Packet Length */
101101
uLONG spLength; /* EATA Status Packet Length */
102-
uCHAR drqNum; /* DRQ Index (0,5,6,7) */
102+
uCHAR drqNum; /* DRQ Index (0,5,6,7) */
103103
uCHAR flag1; /* EATA Flags 1 (Byte 9) */
104104
uCHAR flag2; /* EATA Flags 2 (Byte 30) */
105105
} CtrlInfo;

‎drivers/scsi/dpt/dptsig.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ typedef unsigned long sigLONG;
145145
#define FT_LOGGER 12 /* Event Logger */
146146
#define FT_INSTALL 13 /* An Install Program */
147147
#define FT_LIBRARY 14 /* Storage Manager Real-Mode Calls */
148-
#define FT_RESOURCE 15 /* Storage Manager Resource File */
149-
#define FT_MODEM_DB 16 /* Storage Manager Modem Database */
148+
#define FT_RESOURCE 15 /* Storage Manager Resource File */
149+
#define FT_MODEM_DB 16 /* Storage Manager Modem Database */
150150

151151
/* Filetype flags - sigBYTE dsFiletypeFlags; FLAG BITS */
152152
/* ------------------------------------------------------------------ */

0 commit comments

Comments
 (0)