diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-09-26 08:44:20 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-12-07 16:28:07 +0300 |
commit | 3c92699a167a543b2bc7d603e4a09aa78a99f809 (patch) | |
tree | de4de3aa62efeec0f659191790e34b0354aece69 /include/linux/mfd/twl6040.h | |
parent | 7ca91a33775c4a33cb451f508f84a7820179c73b (diff) | |
download | linux-3c92699a167a543b2bc7d603e4a09aa78a99f809.tar.xz |
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/mfd/twl6040.h')
-rw-r--r-- | include/linux/mfd/twl6040.h | 5 |
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; |