summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2014-12-05 17:09:01 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-01-09 17:32:33 -0800
commit2b6040c51f7d031d83355df2454d4b80e7779885 (patch)
treec8727e744731a0137972ed37e9490d740c88532d
parent419113c892db06951046d42c2c2d4e7e5cc4c33f (diff)
staging: unisys: refactor info_debugfs_read()
Fix the function declaration so the type is on the same line as the name, and fix the CamelCase local variable name: TotalBytes => total_bytes Signed-off-by: Bryan Thompson <bryan.thompson@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/unisys/uislib/uislib.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/staging/unisys/uislib/uislib.c b/drivers/staging/unisys/uislib/uislib.c
index d25182299e30..614919c88edd 100644
--- a/drivers/staging/unisys/uislib/uislib.c
+++ b/drivers/staging/unisys/uislib/uislib.c
@@ -1154,12 +1154,11 @@ err_done:
return -1;
}
-static ssize_t
-info_debugfs_read(struct file *file, char __user *buf,
- size_t len, loff_t *offset)
+static ssize_t info_debugfs_read(struct file *file, char __user *buf,
+ size_t len, loff_t *offset)
{
char *temp;
- int totalBytes = 0;
+ int total_bytes = 0;
int remaining_bytes = PROC_READ_BUFFER_SIZE;
/* *start = buf; */
@@ -1178,14 +1177,14 @@ info_debugfs_read(struct file *file, char __user *buf,
if ((*offset == 0) || (!debug_buf_valid)) {
DBGINF("calling info_debugfs_read_helper.\n");
/* if the read fails, then -1 will be returned */
- totalBytes = info_debugfs_read_helper(&temp, &remaining_bytes);
+ total_bytes = info_debugfs_read_helper(&temp, &remaining_bytes);
debug_buf_valid = 1;
} else {
- totalBytes = strlen(debug_buf);
+ total_bytes = strlen(debug_buf);
}
return simple_read_from_buffer(buf, len, offset,
- debug_buf, totalBytes);
+ debug_buf, total_bytes);
}
static struct device_info *