mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
clk: qcom: camcc-x1p42100: Constify qcom_cc_driver_data and list of critical CBCR registers
The static 'struct qcom_cc_desc', 'struct qcom_cc_driver_data' and array 'xxx_critical_cbcrs' are already treated by common.c code as pointers to const, so constify few remaining pieces. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260705171811.115542-3-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
6b150572bb
commit
3fb968b400
|
|
@ -2166,7 +2166,7 @@ static struct clk_alpha_pll *cam_cc_x1p42100_plls[] = {
|
|||
&cam_cc_pll6,
|
||||
};
|
||||
|
||||
static u32 cam_cc_x1p42100_critical_cbcrs[] = {
|
||||
static const u32 cam_cc_x1p42100_critical_cbcrs[] = {
|
||||
0x13a9c, /* CAM_CC_GDSC_CLK */
|
||||
0x13ab8, /* CAM_CC_SLEEP_CLK */
|
||||
};
|
||||
|
|
@ -2179,14 +2179,14 @@ static const struct regmap_config cam_cc_x1p42100_regmap_config = {
|
|||
.fast_io = true,
|
||||
};
|
||||
|
||||
static struct qcom_cc_driver_data cam_cc_x1p42100_driver_data = {
|
||||
static const struct qcom_cc_driver_data cam_cc_x1p42100_driver_data = {
|
||||
.alpha_plls = cam_cc_x1p42100_plls,
|
||||
.num_alpha_plls = ARRAY_SIZE(cam_cc_x1p42100_plls),
|
||||
.clk_cbcrs = cam_cc_x1p42100_critical_cbcrs,
|
||||
.num_clk_cbcrs = ARRAY_SIZE(cam_cc_x1p42100_critical_cbcrs),
|
||||
};
|
||||
|
||||
static struct qcom_cc_desc cam_cc_x1p42100_desc = {
|
||||
static const struct qcom_cc_desc cam_cc_x1p42100_desc = {
|
||||
.config = &cam_cc_x1p42100_regmap_config,
|
||||
.clks = cam_cc_x1p42100_clocks,
|
||||
.num_clks = ARRAY_SIZE(cam_cc_x1p42100_clocks),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user