interconnect: Add of_icc_get_by_index() helper function
authorGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 12 May 2020 12:53:20 +0000 (15:53 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Wed, 13 May 2020 11:06:32 +0000 (14:06 +0300)
commit1597d453289b385237628cd96d57d147632ab105
tree9af03d1e45b6202065fdd5f27aaf55c8e56c6e5d
parentae83d0b416db002fe95601e7f97f64b59514d936
interconnect: Add of_icc_get_by_index() helper function

This is the same as the traditional of_icc_get() function, but the
difference is that it takes index as an argument, instead of name.

Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Sibi Sankar <sibis@codeaurora.org>
Link: https://lore.kernel.org/r/20200512125327.1868-4-georgi.djakov@linaro.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/core.c
include/linux/interconnect.h