Commit 87df31ea authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Bjorn Andersson
Browse files

clk: qcom: Constify list of critical CBCR registers



The static array 'xxx_critical_cbcrs' contains probe match-like data and
is not modified: neither by the driver defining it nor by common.c code
using it.

Make it const for code safety and code readability.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: default avatarVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260331091721.61613-4-krzysztof.kozlowski@oss.qualcomm.com


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 573ddd0d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ static struct clk_alpha_pll *cam_bist_mclk_cc_kaanapali_plls[] = {
	&cam_bist_mclk_cc_pll0,
};

static u32 cam_bist_mclk_cc_kaanapali_critical_cbcrs[] = {
static const u32 cam_bist_mclk_cc_kaanapali_critical_cbcrs[] = {
	0x40e0, /* CAM_BIST_MCLK_CC_SLEEP_CLK */
};

+1 −1
Original line number Diff line number Diff line
@@ -402,7 +402,7 @@ static struct clk_alpha_pll *cam_bist_mclk_cc_sm8750_plls[] = {
	&cam_bist_mclk_cc_pll0,
};

static u32 cam_bist_mclk_cc_sm8750_critical_cbcrs[] = {
static const u32 cam_bist_mclk_cc_sm8750_critical_cbcrs[] = {
	0x40f8, /* CAM_BIST_MCLK_CC_SLEEP_CLK */
};

+1 −1
Original line number Diff line number Diff line
@@ -2600,7 +2600,7 @@ static struct clk_alpha_pll *cam_cc_kaanapali_plls[] = {
	&cam_cc_pll7,
};

static u32 cam_cc_kaanapali_critical_cbcrs[] = {
static const u32 cam_cc_kaanapali_critical_cbcrs[] = {
	0x21398, /* CAM_CC_DRV_AHB_CLK */
	0x21390, /* CAM_CC_DRV_XO_CLK */
	0x21364, /* CAM_CC_GDSC_CLK */
+1 −1
Original line number Diff line number Diff line
@@ -2104,7 +2104,7 @@ static struct clk_alpha_pll *cam_cc_milos_plls[] = {
	&cam_cc_pll6,
};

static u32 cam_cc_milos_critical_cbcrs[] = {
static const u32 cam_cc_milos_critical_cbcrs[] = {
	0x25038, /* CAM_CC_GDSC_CLK */
	0x2505c, /* CAM_CC_SLEEP_CLK */
};
+1 −1
Original line number Diff line number Diff line
@@ -2829,7 +2829,7 @@ static struct clk_alpha_pll *cam_cc_sc8180x_plls[] = {
	&cam_cc_pll6,
};

static u32 cam_cc_sc8180x_critical_cbcrs[] = {
static const u32 cam_cc_sc8180x_critical_cbcrs[] = {
	0xc1e4, /* CAM_CC_GDSC_CLK */
	0xc200, /* CAM_CC_SLEEP_CLK */
};
Loading