Skip to content

Commit 524e3b6

Browse files
shadowconnectLinus Torvalds
authored andcommitted
[PATCH] I2O: Lindent run
Signed-off-by: Markus Lidel <Markus.Lidel@shadowconnect.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent f6ed39a commit 524e3b6

3 files changed

Lines changed: 29 additions & 32 deletions

File tree

‎drivers/message/i2o/device.c‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static inline int i2o_device_issue_claim(struct i2o_device *dev, u32 cmd,
4343

4444
msg->u.head[0] = cpu_to_le32(FIVE_WORD_MSG_SIZE | SGL_OFFSET_0);
4545
msg->u.head[1] =
46-
cpu_to_le32(cmd << 24 | HOST_TID << 12 | dev->lct_data.tid);
46+
cpu_to_le32(cmd << 24 | HOST_TID << 12 | dev->lct_data.tid);
4747
msg->body[0] = cpu_to_le32(type);
4848

4949
return i2o_msg_post_wait(dev->iop, msg, 60);
@@ -123,7 +123,6 @@ int i2o_device_claim_release(struct i2o_device *dev)
123123
return rc;
124124
}
125125

126-
127126
/**
128127
* i2o_device_release - release the memory for a I2O device
129128
* @dev: I2O device which should be released
@@ -140,7 +139,6 @@ static void i2o_device_release(struct device *dev)
140139
kfree(i2o_dev);
141140
}
142141

143-
144142
/**
145143
* i2o_device_show_class_id - Displays class id of I2O device
146144
* @dev: device of which the class id should be displayed
@@ -250,10 +248,10 @@ static struct i2o_device *i2o_device_add(struct i2o_controller *c,
250248

251249
/* create user entries refering to this device */
252250
list_for_each_entry(tmp, &c->devices, list)
253-
if ((tmp->lct_data.user_tid == i2o_dev->lct_data.tid)
254-
&& (tmp != i2o_dev))
255-
sysfs_create_link(&tmp->device.kobj,
256-
&i2o_dev->device.kobj, "user");
251+
if ((tmp->lct_data.user_tid == i2o_dev->lct_data.tid)
252+
&& (tmp != i2o_dev))
253+
sysfs_create_link(&tmp->device.kobj,
254+
&i2o_dev->device.kobj, "user");
257255

258256
/* create parent entries for this device */
259257
tmp = i2o_iop_find_device(i2o_dev->iop, i2o_dev->lct_data.parent_tid);
@@ -263,10 +261,10 @@ static struct i2o_device *i2o_device_add(struct i2o_controller *c,
263261

264262
/* create parent entries refering to this device */
265263
list_for_each_entry(tmp, &c->devices, list)
266-
if ((tmp->lct_data.parent_tid == i2o_dev->lct_data.tid)
267-
&& (tmp != i2o_dev))
268-
sysfs_create_link(&tmp->device.kobj,
269-
&i2o_dev->device.kobj, "parent");
264+
if ((tmp->lct_data.parent_tid == i2o_dev->lct_data.tid)
265+
&& (tmp != i2o_dev))
266+
sysfs_create_link(&tmp->device.kobj,
267+
&i2o_dev->device.kobj, "parent");
270268

271269
i2o_driver_notify_device_add_all(i2o_dev);
272270

@@ -410,7 +408,6 @@ int i2o_device_parse_lct(struct i2o_controller *c)
410408
return 0;
411409
}
412410

413-
414411
/*
415412
* Run time support routines
416413
*/

‎drivers/message/i2o/exec-osm.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <linux/workqueue.h>
3434
#include <linux/string.h>
3535
#include <linux/slab.h>
36-
#include <linux/sched.h> /* wait_event_interruptible_timeout() needs this */
36+
#include <linux/sched.h> /* wait_event_interruptible_timeout() needs this */
3737
#include <asm/param.h> /* HZ */
3838
#include "core.h"
3939

‎drivers/message/i2o/i2o_lan.h‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@
103103
#define I2O_LAN_DSC_SUSPENDED 0x11
104104

105105
struct i2o_packet_info {
106-
u32 offset : 24;
107-
u32 flags : 8;
108-
u32 len : 24;
109-
u32 status : 8;
106+
u32 offset:24;
107+
u32 flags:8;
108+
u32 len:24;
109+
u32 status:8;
110110
};
111111

112112
struct i2o_bucket_descriptor {
113-
u32 context; /* FIXME: 64bit support */
113+
u32 context; /* FIXME: 64bit support */
114114
struct i2o_packet_info packet_info[1];
115115
};
116116

@@ -127,14 +127,14 @@ struct i2o_lan_local {
127127
u8 unit;
128128
struct i2o_device *i2o_dev;
129129

130-
struct fddi_statistics stats; /* see also struct net_device_stats */
131-
unsigned short (*type_trans)(struct sk_buff *, struct net_device *);
132-
atomic_t buckets_out; /* nbr of unused buckets on DDM */
133-
atomic_t tx_out; /* outstanding TXes */
134-
u8 tx_count; /* packets in one TX message frame */
135-
u16 tx_max_out; /* DDM's Tx queue len */
136-
u8 sgl_max; /* max SGLs in one message frame */
137-
u32 m; /* IOP address of the batch msg frame */
130+
struct fddi_statistics stats; /* see also struct net_device_stats */
131+
unsigned short (*type_trans) (struct sk_buff *, struct net_device *);
132+
atomic_t buckets_out; /* nbr of unused buckets on DDM */
133+
atomic_t tx_out; /* outstanding TXes */
134+
u8 tx_count; /* packets in one TX message frame */
135+
u16 tx_max_out; /* DDM's Tx queue len */
136+
u8 sgl_max; /* max SGLs in one message frame */
137+
u32 m; /* IOP address of the batch msg frame */
138138

139139
struct work_struct i2o_batch_send_task;
140140
int send_active;
@@ -144,16 +144,16 @@ struct i2o_lan_local {
144144

145145
spinlock_t tx_lock;
146146

147-
u32 max_size_mc_table; /* max number of multicast addresses */
147+
u32 max_size_mc_table; /* max number of multicast addresses */
148148

149149
/* LAN OSM configurable parameters are here: */
150150

151-
u16 max_buckets_out; /* max nbr of buckets to send to DDM */
152-
u16 bucket_thresh; /* send more when this many used */
151+
u16 max_buckets_out; /* max nbr of buckets to send to DDM */
152+
u16 bucket_thresh; /* send more when this many used */
153153
u16 rx_copybreak;
154154

155-
u8 tx_batch_mode; /* Set when using batch mode sends */
156-
u32 i2o_event_mask; /* To turn on interesting event flags */
155+
u8 tx_batch_mode; /* Set when using batch mode sends */
156+
u32 i2o_event_mask; /* To turn on interesting event flags */
157157
};
158158

159-
#endif /* _I2O_LAN_H */
159+
#endif /* _I2O_LAN_H */

0 commit comments

Comments
 (0)