From 67d3f99f23d46a8cf24282813dafa635fb89197f Mon Sep 17 00:00:00 2001 From: Robert Marko Date: Mon, 13 Apr 2026 12:19:59 +0200 Subject: [PATCH] qualcommax: constify CPR match data CPR driver was converted to use of_device_get_match_data and it locally constified the CPR match data structures but they are also stored per regulator in their struct, these were not constified and would cause a compile time error. So, constify those as well. Fixes: c1fa85f65931 ("treewide: use of_device_get_match_data") Signed-off-by: Robert Marko --- .../0901-regulator-add-Qualcomm-CPR-regulators.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/qualcommax/patches-6.12/0901-regulator-add-Qualcomm-CPR-regulators.patch b/target/linux/qualcommax/patches-6.12/0901-regulator-add-Qualcomm-CPR-regulators.patch index dc1b8369b8..267ed2b5eb 100644 --- a/target/linux/qualcommax/patches-6.12/0901-regulator-add-Qualcomm-CPR-regulators.patch +++ b/target/linux/qualcommax/patches-6.12/0901-regulator-add-Qualcomm-CPR-regulators.patch @@ -6271,8 +6271,8 @@ Signed-off-by: Robert Marko + struct cpr3_corner *corner; + int corner_count; + struct cprh_corner_band *corner_band; -+ struct cpr4_reg_data *cpr4_regulator_data; -+ struct cpr3_reg_data *cpr3_regulator_data; ++ const struct cpr4_reg_data *cpr4_regulator_data; ++ const struct cpr3_reg_data *cpr3_regulator_data; + u32 corner_band_count; + + void *platform_fuses;