[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <7933cca2-2ec4-7b53-a935-6b4c66bee23d@users.sourceforge.net>
Date: Sun, 7 May 2017 11:53:54 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-tegra@...r.kernel.org, linux-pm@...r.kernel.org,
Arnd Bergmann <arnd@...db.de>,
Eduardo Valentin <edubezval@...il.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Mikko Perttunen <mperttunen@...dia.com>,
Thierry Reding <thierry.reding@...il.com>,
Wei Ni <wni@...dia.com>, Zhang Rui <rui.zhang@...el.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 3/3] thermal: tegra: Combine two seq_printf() calls into one
in regs_show()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sun, 7 May 2017 11:08:42 +0200
A bit of data was put into a sequence by two separate function calls.
Print the same data by a single function call instead.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/thermal/tegra/soctherm.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/thermal/tegra/soctherm.c b/drivers/thermal/tegra/soctherm.c
index 1b3915588bce..3024c4294131 100644
--- a/drivers/thermal/tegra/soctherm.c
+++ b/drivers/thermal/tegra/soctherm.c
@@ -655,8 +655,6 @@ static int regs_show(struct seq_file *s, void *data)
for (i = 0; i < ts->soc->num_tsensors; i++) {
r = readl(ts->regs + tsensors[i].base + SENSOR_CONFIG1);
state = REG_GET_MASK(r, SENSOR_CONFIG1_TEMP_ENABLE);
-
- seq_printf(s, "%s: ", tsensors[i].name);
- seq_printf(s, "En(%d) ", state);
+ seq_printf(s, "%s: En(%d) ", tsensors[i].name, state);
if (!state) {
--
2.12.2
Powered by blists - more mailing lists