linux-clk.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] clk: sysfs: fix invalid JSON in clk_dump
@ 2019-01-04 22:05 Lubomir Rintel
  2019-01-09 18:45 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Lubomir Rintel @ 2019-01-04 22:05 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: linux-clk, linux-kernel, Jerome Brunet, Lubomir Rintel

Add a missing comma.

Fixes: 9fba738a53dd ("clk: add duty cycle support")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>

---
Change since v1:
- s/clk_jump/clk_dump/

 drivers/clk/clk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 75d13c0eff12..6ccdbedb02f3 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2779,7 +2779,7 @@ static void clk_dump_one(struct seq_file *s, struct clk_core *c, int level)
 	seq_printf(s, "\"protect_count\": %d,", c->protect_count);
 	seq_printf(s, "\"rate\": %lu,", clk_core_get_rate(c));
 	seq_printf(s, "\"accuracy\": %lu,", clk_core_get_accuracy(c));
-	seq_printf(s, "\"phase\": %d", clk_core_get_phase(c));
+	seq_printf(s, "\"phase\": %d,", clk_core_get_phase(c));
 	seq_printf(s, "\"duty_cycle\": %u",
 		   clk_core_get_scaled_duty_cycle(c, 100000));
 }
-- 
2.19.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] clk: sysfs: fix invalid JSON in clk_dump
  2019-01-04 22:05 [PATCH v2] clk: sysfs: fix invalid JSON in clk_dump Lubomir Rintel
@ 2019-01-09 18:45 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2019-01-09 18:45 UTC (permalink / raw)
  To: Lubomir Rintel, Michael Turquette
  Cc: linux-clk, linux-kernel, Jerome Brunet, Lubomir Rintel

Quoting Lubomir Rintel (2019-01-04 14:05:49)
> Add a missing comma.
> 
> Fixes: 9fba738a53dd ("clk: add duty cycle support")
> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
> 
> ---

Applied to clk-fixes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-09 18:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-04 22:05 [PATCH v2] clk: sysfs: fix invalid JSON in clk_dump Lubomir Rintel
2019-01-09 18:45 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).