]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
regulator: max77826: Drop unused 'rdesc' in 'struct max77826_regulator_info'
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 9 Sep 2024 13:51:20 +0000 (15:51 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 10 Sep 2024 11:44:10 +0000 (12:44 +0100)
The max77826_regulator_info.rdesc 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-9-8934704a5787@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max77826-regulator.c

index 5590cdf615b701093898c66c7e74d2aca2cb66bc..4b656a6941088206609e6fca1f02871e3f54b386 100644 (file)
@@ -153,7 +153,6 @@ enum max77826_regulators {
 
 struct max77826_regulator_info {
        struct regmap *regmap;
-       struct regulator_desc *rdesc;
 };
 
 static const struct regmap_config max77826_regmap_config = {
@@ -246,7 +245,6 @@ static int max77826_i2c_probe(struct i2c_client *client)
        if (!info)
                return -ENOMEM;
 
-       info->rdesc = max77826_regulators_desc;
        regmap = devm_regmap_init_i2c(client, &max77826_regmap_config);
        if (IS_ERR(regmap)) {
                dev_err(dev, "Failed to allocate regmap!\n");