Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Dmitry Torokhov and committed by
Lee Jones
1f7caaa1 3c92699a

-29
-29
include/linux/mfd/twl6040.h
··· 174 174 175 175 #define TWL6040_GPO_MAX 3 176 176 177 - /* TODO: All platform data struct can be removed */ 178 - struct twl6040_codec_data { 179 - u16 hs_left_step; 180 - u16 hs_right_step; 181 - u16 hf_left_step; 182 - u16 hf_right_step; 183 - }; 184 - 185 - struct twl6040_vibra_data { 186 - unsigned int vibldrv_res; /* left driver resistance */ 187 - unsigned int vibrdrv_res; /* right driver resistance */ 188 - unsigned int viblmotor_res; /* left motor resistance */ 189 - unsigned int vibrmotor_res; /* right motor resistance */ 190 - int vddvibl_uV; /* VDDVIBL volt, set 0 for fixed reg */ 191 - int vddvibr_uV; /* VDDVIBR volt, set 0 for fixed reg */ 192 - }; 193 - 194 - struct twl6040_gpo_data { 195 - int gpio_base; 196 - }; 197 - 198 - struct twl6040_platform_data { 199 - struct gpio_desc *audpwron_gpio; /* audio power-on gpio */ 200 - 201 - struct twl6040_codec_data *codec; 202 - struct twl6040_vibra_data *vibra; 203 - struct twl6040_gpo_data *gpo; 204 - }; 205 - 206 177 struct gpio_desc; 207 178 struct regmap; 208 179 struct regmap_irq_chips_data;