]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: rpmh-rsc: Remove get_tcs_of_type() abstraction
authorDouglas Anderson <dianders@chromium.org>
Mon, 13 Apr 2020 17:04:09 +0000 (10:04 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 14 Apr 2020 05:09:27 +0000 (22:09 -0700)
commitca7b719fa9db81c25392e4cfa8dec93ebcb5405e
tree8a9672ac3f54e93c21869228c90ae101a7e76e8b
parentb2788d7d26162ddfdda2948dfabd9fadbfb423d8
soc: qcom: rpmh-rsc: Remove get_tcs_of_type() abstraction

The get_tcs_of_type() function doesn't provide any value.  It's not
conceptually difficult to access a value in an array, even if that
value is in a structure and we want a pointer to the value.  Having
the function in there makes me feel like it's doing something fancier
like looping or searching.  Remove it.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Maulik Shah <mkshah@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Maulik Shah <mkshah@codeaurora.org>
Link: https://lore.kernel.org/r/20200413100321.v4.4.Ia348ade7c6ed1d0d952ff2245bc854e5834c8d9a@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/rpmh-rsc.c