summaryrefslogtreecommitdiff
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-05-14 11:06:29 +0300
committerMark Brown <broonie@kernel.org>2018-05-24 18:50:36 +0300
commitd7a261c2d1f233260c48651b4e68987ce1206139 (patch)
tree5d5cd25af4d10d2d180c7736dd507e03108438d9 /include/linux/regulator
parent2468f0d51548b23507ceb3bba5f4e3acaea117ba (diff)
downloadlinux-d7a261c2d1f233260c48651b4e68987ce1206139.tar.xz
regulator: max8952: Pass descriptor instead of GPIO number
Instead of passing a global GPIO number for the enable GPIO, pass a descriptor looked up with the standard devm_gpiod_get_optional() call. All users of this regulator use device tree so the transition is pretty smooth. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r--include/linux/regulator/max8952.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/regulator/max8952.h b/include/linux/regulator/max8952.h
index 4dbb63a1d4ab..686c42c041b5 100644
--- a/include/linux/regulator/max8952.h
+++ b/include/linux/regulator/max8952.h
@@ -120,7 +120,6 @@ enum {
struct max8952_platform_data {
int gpio_vid0;
int gpio_vid1;
- int gpio_en;
u32 default_mode;
u32 dvs_mode[MAX8952_NUM_DVS_MODE]; /* MAX8952_DVS_MODEx_XXXXmV */