]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
regulator: hi6421v530: Drop unused 'eco_microamp'
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 9 Sep 2024 13:51:26 +0000 (15:51 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 10 Sep 2024 11:44:16 +0000 (12:44 +0100)
The hi6421v530_regulator_info.eco_microamp is assigned once and never
used again.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20240909-regulator-const-v1-15-8934704a5787@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/hi6421v530-regulator.c

index 23924ff0c7b23390515999c86d44c69a7cf14f9f..a9c6c077f50d821aee0613f631335d9c500a8214 100644 (file)
  * struct hi6421v530_regulator_info - hi6421v530 regulator information
  * @desc: regulator description
  * @mode_mask: ECO mode bitmask of LDOs; for BUCKs, this masks sleep
- * @eco_microamp: eco mode load upper limit (in uA), valid for LDOs only
  */
 struct hi6421v530_regulator_info {
        struct regulator_desc rdesc;
        u8 mode_mask;
-       u32 eco_microamp;
 };
 
 /* HI6421v530 regulators */
@@ -68,10 +66,9 @@ static const struct regulator_ops hi6421v530_ldo_ops;
  * emask - enable mask
  * odelay - off/on delay time in uS
  * ecomask - eco mode mask
- * ecoamp - eco mode load uppler limit in uA
  */
 #define HI6421V530_LDO(_ID, v_table, vreg, vmask, ereg, emask,         \
-                  odelay, ecomask, ecoamp) {                           \
+                  odelay, ecomask) {                                   \
        .rdesc = {                                                      \
                .name            = #_ID,                                \
                .of_match        = of_match_ptr(#_ID),                  \
@@ -90,22 +87,21 @@ static const struct regulator_ops hi6421v530_ldo_ops;
                .off_on_delay    = odelay,                              \
        },                                                              \
        .mode_mask      = ecomask,                                      \
-       .eco_microamp   = ecoamp,                                       \
 }
 
 /* HI6421V530 regulator information */
 
 static struct hi6421v530_regulator_info hi6421v530_regulator_info[] = {
        HI6421V530_LDO(LDO3, ldo_3_voltages, 0x061, 0xf, 0x060, 0x2,
-                  20000, 0x6, 8000),
+                  20000, 0x6),
        HI6421V530_LDO(LDO9, ldo_9_11_voltages, 0x06b, 0x7, 0x06a, 0x2,
-                  40000, 0x6, 8000),
+                  40000, 0x6),
        HI6421V530_LDO(LDO11, ldo_9_11_voltages, 0x06f, 0x7, 0x06e, 0x2,
-                  40000, 0x6, 8000),
+                  40000, 0x6),
        HI6421V530_LDO(LDO15, ldo_15_16_voltages, 0x077, 0x7, 0x076, 0x2,
-                  40000, 0x6, 8000),
+                  40000, 0x6),
        HI6421V530_LDO(LDO16, ldo_15_16_voltages, 0x079, 0x7, 0x078, 0x2,
-                  40000, 0x6, 8000),
+                  40000, 0x6),
 };
 
 static unsigned int hi6421v530_regulator_ldo_get_mode(