[PATCH v2] interconnect: constify of_phandle_args in xlate

Alim Akhtar alim.akhtar at samsung.com
Tue Feb 20 04:18:01 PST 2024



> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
> Sent: Tuesday, February 20, 2024 12:52 PM
> To: Georgi Djakov <djakov at kernel.org>; Bjorn Andersson
> <andersson at kernel.org>; Konrad Dybcio <konrad.dybcio at linaro.org>;
> Sylwester Nawrocki <s.nawrocki at samsung.com>; Artur Świgoń
> <a.swigon at samsung.com>; Krzysztof Kozlowski
> <krzysztof.kozlowski at linaro.org>; Alim Akhtar
> <alim.akhtar at samsung.com>; Thierry Reding <thierry.reding at gmail.com>;
> Jonathan Hunter <jonathanh at nvidia.com>; linux-pm at vger.kernel.org;
> linux-kernel at vger.kernel.org; linux-arm-msm at vger.kernel.org; linux-
> samsung-soc at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-
> tegra at vger.kernel.org
> Cc: Thierry Reding <treding at nvidia.com>
> Subject: [PATCH v2] interconnect: constify of_phandle_args in xlate
> 
> The xlate callbacks are supposed to translate of_phandle_args to proper
> provider without modifying the of_phandle_args.  Make the argument
> pointer to const for code safety and readability.
> 
> Acked-by: Konrad Dybcio <konrad.dybcio at linaro.org>
> Acked-by: Thierry Reding <treding at nvidia.com> # Tegra
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
> 
> ---
> 
> Changes in v2:
> 1. Drop unrelated gpiolib changes (Konrad, Thierry).
> 2. Add tags.
> ---
>  drivers/interconnect/core.c            |  4 ++--
>  drivers/interconnect/qcom/icc-common.c |  3 ++-
> drivers/interconnect/qcom/icc-common.h |  3 ++-
> drivers/interconnect/samsung/exynos.c  |  2 +-
>  drivers/memory/tegra/mc.c              |  2 +-
>  drivers/memory/tegra/tegra124-emc.c    |  2 +-
>  drivers/memory/tegra/tegra124.c        |  2 +-
>  drivers/memory/tegra/tegra186-emc.c    |  2 +-
>  drivers/memory/tegra/tegra20-emc.c     |  2 +-
>  drivers/memory/tegra/tegra20.c         |  2 +-
>  drivers/memory/tegra/tegra30-emc.c     |  2 +-
>  drivers/memory/tegra/tegra30.c         |  2 +-
>  include/linux/interconnect-provider.h  | 11 ++++++-----
>  include/soc/tegra/mc.h                 |  7 ++++---
>  14 files changed, 25 insertions(+), 21 deletions(-)
> 

For Samsung/Exynos
Reviewed-by: Alim Akhtar <alim.akhtar at samsung.com>
.
.
[snip]
> --
> 2.34.1






More information about the linux-arm-kernel mailing list