clk: tegra: Use match_string() helper to simplify the code
authorYueHaibing <yuehaibing@huawei.com>
Sat, 9 Nov 2019 03:42:26 +0000 (11:42 +0800)
committerStephen Boyd <sboyd@kernel.org>
Wed, 13 Nov 2019 23:03:27 +0000 (15:03 -0800)
commita31414e8c98dadbe0d31804804090e78ab1e0e9f
treee1203a1198431ed2b589c9291388f012870c0bed
parent097064b841b74b137a7672e8daccd1384574ec9c
clk: tegra: Use match_string() helper to simplify the code

match_string() returns the array index of a matching string.
Use it instead of the open-coded implementation.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lkml.kernel.org/r/20191109034226.21044-1-yuehaibing@huawei.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/tegra/clk-emc.c