]> 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)
commit7d69389c676214eac7e3cfaf0428e1d6e2d845a7
treee1203a1198431ed2b589c9291388f012870c0bed
parentb08a12185b577d7595fcf67a06b2bf05c27c1ace
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