aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorSubramaniam C.A <subramaniam.ca@ti.com>2012-01-30 10:18:26 -0600
committerZiyann <jaraidaniel@gmail.com>2014-10-01 12:59:43 +0200
commit94aab97ea48ef87128b085e98c03f2beb3371ec1 (patch)
tree34f11904ec6c307734b5b4416871ec5e14ddafb8 /drivers/remoteproc
parent0f208a08e7d6e811b03d7d51fe8a0607cef13d77 (diff)
downloadkernel_samsung_tuna-94aab97ea48ef87128b085e98c03f2beb3371ec1.tar.gz
kernel_samsung_tuna-94aab97ea48ef87128b085e98c03f2beb3371ec1.tar.bz2
kernel_samsung_tuna-94aab97ea48ef87128b085e98c03f2beb3371ec1.zip
remoteproc: fix checkpatch warnings
A few checkpatch warnings have crept into remoteproc over time, and these have been fixed. Change-Id: Ife21b9c063505f4ceb4f7f4fd6561c854fc99b90 Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com> Conflicts: drivers/remoteproc/remoteproc.c
Diffstat (limited to 'drivers/remoteproc')
-rwxr-xr-x[-rw-r--r--]drivers/remoteproc/remoteproc.c11
-rw-r--r--drivers/remoteproc/rpres.c5
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/remoteproc/remoteproc.c b/drivers/remoteproc/remoteproc.c
index c6ffaba36d1..8c122058ef5 100644..100755
--- a/drivers/remoteproc/remoteproc.c
+++ b/drivers/remoteproc/remoteproc.c
@@ -88,8 +88,8 @@ static ssize_t rproc_format_trace_buf(struct rproc *rproc, char __user *userbuf,
;
if (i > w_pos)
- num_copied =
- simple_read_from_buffer(userbuf, count, ppos, src, i);
+ num_copied = simple_read_from_buffer(userbuf, count,
+ ppos, src, i);
if (!num_copied) {
from_beg = 1;
*ppos = 0;
@@ -102,8 +102,8 @@ print_beg:
;
if (i) {
- num_copied =
- simple_read_from_buffer(userbuf, count, ppos, src, i);
+ num_copied = simple_read_from_buffer(userbuf, count,
+ ppos, src, i);
if (!num_copied)
from_beg = 0;
ret = num_copied;
@@ -1083,9 +1083,8 @@ static int rproc_process_fw(struct rproc *rproc, struct fw_section *section,
ret = rproc_handle_resources(rproc,
(struct fw_resource *) section->content,
len, bootaddr);
- if (ret) {
+ if (ret)
break;
- }
}
if (section->type <= FW_DATA) {
diff --git a/drivers/remoteproc/rpres.c b/drivers/remoteproc/rpres.c
index 56dad98e043..7a200a4c5dc 100644
--- a/drivers/remoteproc/rpres.c
+++ b/drivers/remoteproc/rpres.c
@@ -76,12 +76,13 @@ void rpres_put(struct rpres *obj)
}
EXPORT_SYMBOL(rpres_put);
-int rpres_set_constraints(struct rpres *obj, enum rpres_constraint type, long val)
+int rpres_set_constraints(struct rpres *obj, enum rpres_constraint type,
+ long val)
{
int ret;
struct rpres_platform_data *pdata = obj->pdev->dev.platform_data;
struct platform_device *pdev = obj->pdev;
- static const char *cname[] = {"scale", "latency", "bandwidth"};
+ static char * const cname[] = {"scale", "latency", "bandwidth"};
int (*func)(struct platform_device *, long);
switch (type) {