clk: rockchip: use match_string() helper
authorYisheng Xie <xieyisheng1@huawei.com>
Mon, 21 May 2018 11:57:50 +0000 (19:57 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 22 May 2018 11:32:09 +0000 (13:32 +0200)
commita425702f684a3430a67ab7b373b108e9710e4d07
tree39a8a407266b1c3c0eb49d8dbfb4e3309b958bad
parent60cc43fc888428bb2f18f08997432d426a243338
clk: rockchip: use match_string() helper

match_string() returns the index of an array for a matching string,
which can be used intead of open coded variant.

Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: linux-clk@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk.c