Re: [PATCH 14/33] clk: use match_string() helper

2018-05-21 Thread Andy Shevchenko
On Mon, May 21, 2018 at 2:57 PM, Yisheng Xie wrote: > match_string() returns the index of an array for a matching string, > which can be used intead of open coded variant. > + return match_string(core->parent_names, > + core->num_parents, parent_core->name) >= 0;

[PATCH 14/33] clk: use match_string() helper

2018-05-21 Thread Yisheng Xie
match_string() returns the index of an array for a matching string, which can be used intead of open coded variant. Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-...@vger.kernel.org Signed-off-by: Yisheng Xie --- drivers/clk/clk.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-