projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efde265
)
soc: qcom: socinfo: Use seq_putc() if possible
author
Stephen Boyd
<swboyd@chromium.org>
Mon, 9 Mar 2020 18:51:23 +0000
(11:51 -0700)
committer
Bjorn Andersson
<bjorn.andersson@linaro.org>
Mon, 9 Mar 2020 19:01:34 +0000
(12:01 -0700)
This is a single character that we're printing out. Use seq_putc() for
that to simplify the code.
Cc: Vaishali Thakkar <vaishali.thakkar@linaro.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link:
https://lore.kernel.org/r/20200309185123.65265-1-swboyd@chromium.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/socinfo.c
patch
|
blob
|
history
diff --git
a/drivers/soc/qcom/socinfo.c
b/drivers/soc/qcom/socinfo.c
index
7864b75
..
ebb49ae
100644
(file)
--- a/
drivers/soc/qcom/socinfo.c
+++ b/
drivers/soc/qcom/socinfo.c
@@
-277,7
+277,7
@@
static int show_image_##type(struct seq_file *seq, void *p) \
{ \
struct smem_image_version *image_version = seq->private; \
seq_puts(seq, image_version->type); \
- seq_put
s(seq, "\n"
); \
+ seq_put
c(seq, '\n'
); \
return 0; \
} \
static int open_image_##type(struct inode *inode, struct file *file) \