diff options
author | Subramaniam C.A <subramaniam.ca@ti.com> | 2012-01-30 10:18:26 -0600 |
---|---|---|
committer | Ziyann <jaraidaniel@gmail.com> | 2014-10-01 12:59:43 +0200 |
commit | 94aab97ea48ef87128b085e98c03f2beb3371ec1 (patch) | |
tree | 34f11904ec6c307734b5b4416871ec5e14ddafb8 /drivers/remoteproc | |
parent | 0f208a08e7d6e811b03d7d51fe8a0607cef13d77 (diff) | |
download | kernel_samsung_tuna-94aab97ea48ef87128b085e98c03f2beb3371ec1.zip kernel_samsung_tuna-94aab97ea48ef87128b085e98c03f2beb3371ec1.tar.gz kernel_samsung_tuna-94aab97ea48ef87128b085e98c03f2beb3371ec1.tar.bz2 |
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.c | 11 | ||||
-rw-r--r-- | drivers/remoteproc/rpres.c | 5 |
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/remoteproc/remoteproc.c b/drivers/remoteproc/remoteproc.c index c6ffaba..8c12205 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 56dad98..7a200a4 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) { |