From: Robert Marko Date: Mon, 13 Apr 2026 10:19:59 +0000 (+0200) Subject: qualcommax: constify CPR match data X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=67d3f99f23d46a8cf24282813dafa635fb89197f;p=thirdparty%2Fopenwrt.git 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 --- 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 dc1b8369b81..267ed2b5eb4 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;