mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
clk: qcom: camcc-glymur: Add const qualifier for driver_data & CBCRs list
The qcom_cc_driver_data and critical CBCRs list are never modified by common code and are expected to be const. Hence add const qualifier for these fields. Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260714-glymur_camcc_const_fixes-v1-1-c635123ebbeb@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
8d4f342369
commit
a9954d40de
|
|
@ -2223,7 +2223,7 @@ static struct clk_alpha_pll *cam_cc_glymur_plls[] = {
|
|||
&cam_cc_pll5,
|
||||
};
|
||||
|
||||
static u32 cam_cc_glymur_critical_cbcrs[] = {
|
||||
static const u32 cam_cc_glymur_critical_cbcrs[] = {
|
||||
0x13960, /* CAM_CC_GDSC_CLK */
|
||||
0x1397c, /* CAM_CC_SLEEP_CLK */
|
||||
};
|
||||
|
|
@ -2236,7 +2236,7 @@ static const struct regmap_config cam_cc_glymur_regmap_config = {
|
|||
.fast_io = true,
|
||||
};
|
||||
|
||||
static struct qcom_cc_driver_data cam_cc_glymur_driver_data = {
|
||||
static const struct qcom_cc_driver_data cam_cc_glymur_driver_data = {
|
||||
.alpha_plls = cam_cc_glymur_plls,
|
||||
.num_alpha_plls = ARRAY_SIZE(cam_cc_glymur_plls),
|
||||
.clk_cbcrs = cam_cc_glymur_critical_cbcrs,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user