]> www.infradead.org Git - users/dwmw2/linux.git/commit
clk: Simplify debugfs printing and add a newline
authorStephen Boyd <sboyd@kernel.org>
Tue, 25 Jun 2019 03:01:55 +0000 (20:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 07:11:02 +0000 (09:11 +0200)
commit76d64d6d9ed892d77e7478280827fa7e3a238e6e
tree12bb45bc58667b430ea852e4dc0810cb6abb569c
parent268311c39a7f8cc93a3a2b455b0a4718d4534dd3
clk: Simplify debugfs printing and add a newline

commit 11f6c2307caee89370d7752eb6f404f1ed73faaf upstream.

The possible parent printing function duplicates a bunch of if
conditions. Pull that into another function so we can print an extra
character at the end, either a space or a newline. This way we can add
the required newline that got lost here and also shorten the code.

Fixes: 2d156b78ce8f ("clk: Fix debugfs clk_possible_parents for clks without parent string names")
Cc: Chen-Yu Tsai <wens@csie.org>
Tested-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/clk.c