aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorMaíra Canal <maira.canal@usp.br>2022-04-06 11:40:41 -0300
committerLee Jones <lee.jones@linaro.org>2022-04-26 15:10:29 +0100
commit7f5aaa4a0ae6948eace6cf30f40a3ec27ece8441 (patch)
tree66bae58b278802b9a82b2825b9dd414d801cd411 /include/linux/mfd
parentmfd: tps65218: Fix trivial typo in comment (diff)
downloadlinux-dev-7f5aaa4a0ae6948eace6cf30f40a3ec27ece8441.tar.xz
linux-dev-7f5aaa4a0ae6948eace6cf30f40a3ec27ece8441.zip
mfd: hi655x-pmic: Replace legacy gpio interface for gpiod interface
Considering the current transition of the GPIO subsystem, remove all dependencies of the legacy GPIO interface (linux/gpio.h and linux /of_gpio.h) and replace it with the descriptor-based GPIO approach. Signed-off-by: Maíra Canal <maira.canal@usp.br> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/Yk2maZuf+5FGL+eg@fedora
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/hi655x-pmic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mfd/hi655x-pmic.h b/include/linux/mfd/hi655x-pmic.h
index af5d97239c0d..6a012784dd1b 100644
--- a/include/linux/mfd/hi655x-pmic.h
+++ b/include/linux/mfd/hi655x-pmic.h
@@ -12,6 +12,8 @@
#ifndef __HI655X_PMIC_H
#define __HI655X_PMIC_H
+#include <linux/gpio/consumer.h>
+
/* Hi655x registers are mapped to memory bus in 4 bytes stride */
#define HI655X_STRIDE 4
#define HI655X_BUS_ADDR(x) ((x) << 2)
@@ -53,7 +55,7 @@ struct hi655x_pmic {
struct resource *res;
struct device *dev;
struct regmap *regmap;
- int gpio;
+ struct gpio_desc *gpio;
unsigned int ver;
struct regmap_irq_chip_data *irq_data;
};