summaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2024-09-09 15:51:20 +0200
committerMark Brown <broonie@kernel.org>2024-09-10 13:44:10 +0200
commit653976707d03f9c8e07f1c7733f27c89a1d5eb1c (patch)
tree15248c137fe8dde1baa6eed9780d677da3f3af5c /drivers/regulator
parentregulator: tps65023: Constify static data (diff)
downloadlinux-653976707d03f9c8e07f1c7733f27c89a1d5eb1c.tar.xz
linux-653976707d03f9c8e07f1c7733f27c89a1d5eb1c.zip
regulator: max77826: Drop unused 'rdesc' in 'struct max77826_regulator_info'
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/max77826-regulator.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/max77826-regulator.c b/drivers/regulator/max77826-regulator.c
index 5590cdf615b7..4b656a694108 100644
--- a/drivers/regulator/max77826-regulator.c
+++ b/drivers/regulator/max77826-regulator.c
@@ -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");