summaryrefslogtreecommitdiffstats
path: root/drivers/soc/qcom
diff options
context:
space:
mode:
authorStephen Boyd <swboyd@chromium.org>2020-03-09 19:51:23 +0100
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-03-09 20:01:34 +0100
commitcc41a5273d69391995cbf104cac326fac9780dd1 (patch)
tree205ccaa694db7af97d97f99d6b717e868e2823ed /drivers/soc/qcom
parentdrivers: qcom: rpmh-rsc: Use rcuidle tracepoints for rpmh (diff)
downloadlinux-cc41a5273d69391995cbf104cac326fac9780dd1.tar.xz
linux-cc41a5273d69391995cbf104cac326fac9780dd1.zip
soc: qcom: socinfo: Use seq_putc() if possible
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>
Diffstat (limited to 'drivers/soc/qcom')
-rw-r--r--drivers/soc/qcom/socinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.c
index 7864b75ce569..ebb49aee179b 100644
--- 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_puts(seq, "\n"); \
+ seq_putc(seq, '\n'); \
return 0; \
} \
static int open_image_##type(struct inode *inode, struct file *file) \