diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2018-02-12 14:17:02 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-16 17:05:52 +0000 |
commit | 11da04af0d3b4c24ab057dd17f54dbc854d735de (patch) | |
tree | 64b2dac11d0b4be9115cfe271a497f5ef436b1af /include/linux/regulator | |
parent | 8d05560d1d011e5a842556efdbd70cc8a21499bb (diff) | |
download | linux-next-11da04af0d3b4c24ab057dd17f54dbc854d735de.tar.gz |
regulator: da9211: Pass descriptors instead of GPIO numbers
This augments the DA9211 regulator driver to fetch its GPIO descriptors
directly from the device tree using the newly exported
devm_get_gpiod_from_child().
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/da9211.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/regulator/da9211.h b/include/linux/regulator/da9211.h index f2fd2d3bf58f..d1f2073e4d5f 100644 --- a/include/linux/regulator/da9211.h +++ b/include/linux/regulator/da9211.h @@ -21,6 +21,8 @@ #define DA9211_MAX_REGULATORS 2 +struct gpio_desc; + enum da9211_chip_id { DA9211, DA9212, @@ -39,7 +41,7 @@ struct da9211_pdata { * 2 : 2 phase 2 buck */ int num_buck; - int gpio_ren[DA9211_MAX_REGULATORS]; + struct gpio_desc *gpiod_ren[DA9211_MAX_REGULATORS]; struct device_node *reg_node[DA9211_MAX_REGULATORS]; struct regulator_init_data *init_data[DA9211_MAX_REGULATORS]; }; |