Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: qcom: constify static 'struct qcom_icc_hws_data'

Drivers and core code does not modify the file-scope static 'struct
qcom_icc_hws_data', so it can be made const for code safety and
readability.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240905150235.276345-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Bjorn Andersson
af65ec1a b815ccf5

+3 -3
+1 -1
drivers/clk/qcom/common.h
··· 35 35 size_t num_gdscs; 36 36 struct clk_hw **clk_hws; 37 37 size_t num_clk_hws; 38 - struct qcom_icc_hws_data *icc_hws; 38 + const struct qcom_icc_hws_data *icc_hws; 39 39 size_t num_icc_hws; 40 40 unsigned int icc_first_node_id; 41 41 };
+1 -1
drivers/clk/qcom/gcc-ipq5332.c
··· 3622 3622 3623 3623 #define IPQ_APPS_ID 5332 /* some unique value */ 3624 3624 3625 - static struct qcom_icc_hws_data icc_ipq5332_hws[] = { 3625 + static const struct qcom_icc_hws_data icc_ipq5332_hws[] = { 3626 3626 { MASTER_SNOC_PCIE3_1_M, SLAVE_SNOC_PCIE3_1_M, GCC_SNOC_PCIE3_1LANE_M_CLK }, 3627 3627 { MASTER_ANOC_PCIE3_1_S, SLAVE_ANOC_PCIE3_1_S, GCC_SNOC_PCIE3_1LANE_S_CLK }, 3628 3628 { MASTER_SNOC_PCIE3_2_M, SLAVE_SNOC_PCIE3_2_M, GCC_SNOC_PCIE3_2LANE_M_CLK },
+1 -1
drivers/clk/qcom/gcc-ipq9574.c
··· 4384 4384 4385 4385 #define IPQ_APPS_ID 9574 /* some unique value */ 4386 4386 4387 - static struct qcom_icc_hws_data icc_ipq9574_hws[] = { 4387 + static const struct qcom_icc_hws_data icc_ipq9574_hws[] = { 4388 4388 { MASTER_ANOC_PCIE0, SLAVE_ANOC_PCIE0, GCC_ANOC_PCIE0_1LANE_M_CLK }, 4389 4389 { MASTER_SNOC_PCIE0, SLAVE_SNOC_PCIE0, GCC_SNOC_PCIE0_1LANE_S_CLK }, 4390 4390 { MASTER_ANOC_PCIE1, SLAVE_ANOC_PCIE1, GCC_ANOC_PCIE1_1LANE_M_CLK },