]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
qualcommax: constify CPR match data
authorRobert Marko <robimarko@gmail.com>
Mon, 13 Apr 2026 10:19:59 +0000 (12:19 +0200)
committerRobert Marko <robimarko@gmail.com>
Mon, 13 Apr 2026 10:22:09 +0000 (12:22 +0200)
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 <robimarko@gmail.com>
target/linux/qualcommax/patches-6.12/0901-regulator-add-Qualcomm-CPR-regulators.patch

index dc1b8369b8198a47f11c98fc4f9add400470b38d..267ed2b5eb451eff899bd7c02b31eb7f287403ba 100644 (file)
@@ -6271,8 +6271,8 @@ Signed-off-by: Robert Marko <robimarko@gmail.com>
 +      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;