Linux-Clk Archive on lore.kernel.org
 help / 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	[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, back to index

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

Linux-Clk Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-clk/0 linux-clk/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-clk linux-clk/ https://lore.kernel.org/linux-clk \
		linux-clk@vger.kernel.org linux-clk@archiver.kernel.org
	public-inbox-index linux-clk


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-clk


AGPL code for this site: git clone https://public-inbox.org/ public-inbox