diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-07-17 07:03:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:04 -0400 |
commit | 3110dc7a8660ea1617afac2a55e3d18ae6ce141b (patch) | |
tree | 616aaa6975f236c220b35271e1fbfddfe658a547 /drivers/misc/ibmasm/ibmasmfs.c | |
parent | 567f3e422a9a155d7c7643148efb5bf959065d34 (diff) |
IBMASM: whitespace cleanup
IBMASM: whitespace cleanup
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Vernon Mauery <vernux@us.ibm.com>
Cc: Max Asbock <masbock@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/ibmasm/ibmasmfs.c')
-rw-r--r-- | drivers/misc/ibmasm/ibmasmfs.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index c436d3de8b8b..eb7b073734b8 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
@@ -17,12 +17,12 @@ | |||
17 | * | 17 | * |
18 | * Copyright (C) IBM Corporation, 2004 | 18 | * Copyright (C) IBM Corporation, 2004 |
19 | * | 19 | * |
20 | * Author: Max Asböck <amax@us.ibm.com> | 20 | * Author: Max Asböck <amax@us.ibm.com> |
21 | * | 21 | * |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * Parts of this code are based on an article by Jonathan Corbet | 25 | * Parts of this code are based on an article by Jonathan Corbet |
26 | * that appeared in Linux Weekly News. | 26 | * that appeared in Linux Weekly News. |
27 | */ | 27 | */ |
28 | 28 | ||
@@ -55,22 +55,22 @@ | |||
55 | * For each service processor the following files are created: | 55 | * For each service processor the following files are created: |
56 | * | 56 | * |
57 | * command: execute dot commands | 57 | * command: execute dot commands |
58 | * write: execute a dot command on the service processor | 58 | * write: execute a dot command on the service processor |
59 | * read: return the result of a previously executed dot command | 59 | * read: return the result of a previously executed dot command |
60 | * | 60 | * |
61 | * events: listen for service processor events | 61 | * events: listen for service processor events |
62 | * read: sleep (interruptible) until an event occurs | 62 | * read: sleep (interruptible) until an event occurs |
63 | * write: wakeup sleeping event listener | 63 | * write: wakeup sleeping event listener |
64 | * | 64 | * |
65 | * reverse_heartbeat: send a heartbeat to the service processor | 65 | * reverse_heartbeat: send a heartbeat to the service processor |
66 | * read: sleep (interruptible) until the reverse heartbeat fails | 66 | * read: sleep (interruptible) until the reverse heartbeat fails |
67 | * write: wakeup sleeping heartbeat listener | 67 | * write: wakeup sleeping heartbeat listener |
68 | * | 68 | * |
69 | * remote_video/width | 69 | * remote_video/width |
70 | * remote_video/height | 70 | * remote_video/height |
71 | * remote_video/width: control remote display settings | 71 | * remote_video/width: control remote display settings |
72 | * write: set value | 72 | * write: set value |
73 | * read: read value | 73 | * read: read value |
74 | */ | 74 | */ |
75 | 75 | ||
76 | #include <linux/fs.h> | 76 | #include <linux/fs.h> |
@@ -155,7 +155,7 @@ static struct inode *ibmasmfs_make_inode(struct super_block *sb, int mode) | |||
155 | 155 | ||
156 | static struct dentry *ibmasmfs_create_file (struct super_block *sb, | 156 | static struct dentry *ibmasmfs_create_file (struct super_block *sb, |
157 | struct dentry *parent, | 157 | struct dentry *parent, |
158 | const char *name, | 158 | const char *name, |
159 | const struct file_operations *fops, | 159 | const struct file_operations *fops, |
160 | void *data, | 160 | void *data, |
161 | int mode) | 161 | int mode) |
@@ -261,7 +261,7 @@ static int command_file_close(struct inode *inode, struct file *file) | |||
261 | struct ibmasmfs_command_data *command_data = file->private_data; | 261 | struct ibmasmfs_command_data *command_data = file->private_data; |
262 | 262 | ||
263 | if (command_data->command) | 263 | if (command_data->command) |
264 | command_put(command_data->command); | 264 | command_put(command_data->command); |
265 | 265 | ||
266 | kfree(command_data); | 266 | kfree(command_data); |
267 | return 0; | 267 | return 0; |
@@ -348,7 +348,7 @@ static ssize_t command_file_write(struct file *file, const char __user *ubuff, s | |||
348 | static int event_file_open(struct inode *inode, struct file *file) | 348 | static int event_file_open(struct inode *inode, struct file *file) |
349 | { | 349 | { |
350 | struct ibmasmfs_event_data *event_data; | 350 | struct ibmasmfs_event_data *event_data; |
351 | struct service_processor *sp; | 351 | struct service_processor *sp; |
352 | 352 | ||
353 | if (!inode->i_private) | 353 | if (!inode->i_private) |
354 | return -ENODEV; | 354 | return -ENODEV; |
@@ -573,7 +573,7 @@ static ssize_t remote_settings_file_write(struct file *file, const char __user * | |||
573 | kfree(buff); | 573 | kfree(buff); |
574 | return -EFAULT; | 574 | return -EFAULT; |
575 | } | 575 | } |
576 | 576 | ||
577 | value = simple_strtoul(buff, NULL, 10); | 577 | value = simple_strtoul(buff, NULL, 10); |
578 | writel(value, address); | 578 | writel(value, address); |
579 | kfree(buff); | 579 | kfree(buff); |