mfd: ti-lmu: Switch to GPIOD

Use new descriptor based API instead of the legacy one.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
Pavel Machek 2018-09-11 23:01:33 +02:00 committed by Lee Jones
parent 5b6850fa90
commit 7a6a395b16
2 changed files with 14 additions and 17 deletions

View file

@ -16,6 +16,7 @@
#include <linux/gpio.h>
#include <linux/notifier.h>
#include <linux/regmap.h>
#include <linux/gpio/consumer.h>
/* Notifier event */
#define LMU_EVENT_MONITOR_DONE 0x01
@ -81,7 +82,7 @@ enum lm363x_regulator_id {
struct ti_lmu {
struct device *dev;
struct regmap *regmap;
int en_gpio;
struct gpio_desc *en_gpio;
struct blocking_notifier_head notifier;
};
#endif