summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2022-09-26 07:44:21 +0200
committerLee Jones <lee@kernel.org>2022-12-07 14:28:07 +0100
commit1f7caaa1743edbc40f3cd7e2bc0dff89698fd91d (patch)
tree7160175814d77a38c0bfdac43b5fa81979c65802 /include
parentmfd: twl6040: Switch to using gpiod API (diff)
downloadlinux-1f7caaa1743edbc40f3cd7e2bc0dff89698fd91d.tar.xz
linux-1f7caaa1743edbc40f3cd7e2bc0dff89698fd91d.zip
mfd: twl6040: Drop twl6040_platform_data and associated definitions
As of df04b6242a58 ("mfd: twl6040: Remove support for legacy (pdata) mode") the driver no longer references the platform data, so we can drop its definition, as well as definitions of related structures. 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-5-dmitry.torokhov@gmail.com
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/twl6040.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h
index cb1e7a9ce317..286a724e379a 100644
--- a/include/linux/mfd/twl6040.h
+++ b/include/linux/mfd/twl6040.h
@@ -174,35 +174,6 @@
#define TWL6040_GPO_MAX 3
-/* TODO: All platform data struct can be removed */
-struct twl6040_codec_data {
- u16 hs_left_step;
- u16 hs_right_step;
- u16 hf_left_step;
- u16 hf_right_step;
-};
-
-struct twl6040_vibra_data {
- unsigned int vibldrv_res; /* left driver resistance */
- unsigned int vibrdrv_res; /* right driver resistance */
- unsigned int viblmotor_res; /* left motor resistance */
- unsigned int vibrmotor_res; /* right motor resistance */
- int vddvibl_uV; /* VDDVIBL volt, set 0 for fixed reg */
- int vddvibr_uV; /* VDDVIBR volt, set 0 for fixed reg */
-};
-
-struct twl6040_gpo_data {
- int gpio_base;
-};
-
-struct twl6040_platform_data {
- 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;