summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/da9055
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2018-02-12 14:17:00 +0100
committerMark Brown <broonie@kernel.org>2018-02-16 17:05:45 +0000
commit8d05560d1d011e5a842556efdbd70cc8a21499bb (patch)
tree80b284ada6e65e4d7b8c1a9c32c4df687e6ddedb /include/linux/mfd/da9055
parente45e290a882e2c0dc8ebb7dd21c66a8209d8e3a5 (diff)
downloadlinux-8d05560d1d011e5a842556efdbd70cc8a21499bb.tar.gz
linux-8d05560d1d011e5a842556efdbd70cc8a21499bb.tar.bz2
linux-8d05560d1d011e5a842556efdbd70cc8a21499bb.zip
regulator: da9055: Pass descriptor instead of GPIO number
When setting up a fixed regulator on the DA9055, pass a descriptor instead of a global GPIO number. This facility is not used in the kernel so we can easily just say that this should be a descriptor if/when put to use. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/mfd/da9055')
-rw-r--r--include/linux/mfd/da9055/pdata.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mfd/da9055/pdata.h b/include/linux/mfd/da9055/pdata.h
index 04e092be4b07..1a94fa2ac309 100644
--- a/include/linux/mfd/da9055/pdata.h
+++ b/include/linux/mfd/da9055/pdata.h
@@ -12,6 +12,7 @@
#define DA9055_MAX_REGULATORS 8
struct da9055;
+struct gpio_desc;
enum gpio_select {
NO_GPIO = 0,
@@ -47,7 +48,7 @@ struct da9055_pdata {
* controls the regulator set A/B, 0 if not available.
*/
enum gpio_select *reg_rsel;
- /* GPIOs to enable regulator, 0 if not available */
- int *ena_gpio;
+ /* GPIO descriptors to enable regulator, NULL if not available */
+ struct gpio_desc **ena_gpiods;
};
#endif /* __DA9055_PDATA_H */