]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ec1231de8f69e5cd6a4f7191509689e6e17984b
treee1203a1198431ed2b589c9291388f012870c0bed
parenta46396a0fa9035c5b9c82b47f9f664a641127cf2
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