summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2022-09-25 22:44:20 -0700
committerLee Jones <lee@kernel.org>2022-12-07 13:28:07 +0000
commit3c92699a167a543b2bc7d603e4a09aa78a99f809 (patch)
treede4de3aa62efeec0f659191790e34b0354aece69 /include/linux
parent7ca91a33775c4a33cb451f508f84a7820179c73b (diff)
downloadlinux-stable-3c92699a167a543b2bc7d603e4a09aa78a99f809.tar.gz
linux-stable-3c92699a167a543b2bc7d603e4a09aa78a99f809.tar.bz2
linux-stable-3c92699a167a543b2bc7d603e4a09aa78a99f809.zip
mfd: twl6040: Switch to using gpiod API
This patch switches the dirver from legacy gpio API to a newer gpiod API so that we can eventually drop the former. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20220926054421.1546436-4-dmitry.torokhov@gmail.com
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/twl6040.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h
index 1fc7450bd8ab..cb1e7a9ce317 100644
--- a/include/linux/mfd/twl6040.h
+++ b/include/linux/mfd/twl6040.h
@@ -196,13 +196,14 @@ struct twl6040_gpo_data {
};
struct twl6040_platform_data {
- int audpwron_gpio; /* audio power-on gpio */
+ struct gpio_desc *audpwron_gpio; /* audio power-on gpio */
struct twl6040_codec_data *codec;
struct twl6040_vibra_data *vibra;
struct twl6040_gpo_data *gpo;
};
+struct gpio_desc;
struct regmap;
struct regmap_irq_chips_data;
@@ -218,7 +219,7 @@ struct twl6040 {
struct mfd_cell cells[TWL6040_CELLS];
struct completion ready;
- int audpwron;
+ struct gpio_desc *audpwron;
int power_count;
int rev;