diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-01-04 23:05:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-05 17:58:46 +0100 |
commit | 71943c38620d0209e5059ddf8ee2ac68b5a1f9cb (patch) | |
tree | 0e6b7c88a61cb627eda448f814bb20f3d6fb64f1 /drivers/clk | |
parent | acc934f576919d151b25824ba9cdc59d874aba65 (diff) | |
download | linux-stable-71943c38620d0209e5059ddf8ee2ac68b5a1f9cb.tar.gz linux-stable-71943c38620d0209e5059ddf8ee2ac68b5a1f9cb.tar.bz2 linux-stable-71943c38620d0209e5059ddf8ee2ac68b5a1f9cb.zip |
clk: sysfs: fix invalid JSON in clk_dump
[ Upstream commit c6e909972ef87aa2a479269f46b84126f99ec6db ]
Add a missing comma so that the output is valid JSON format again.
Fixes: 9fba738a53dd ("clk: add duty cycle support")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index d31055ae6ec6..5413ffaf02e2 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2687,7 +2687,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)); } |