Skip to content

Commit 69d5b62

Browse files
MrVanbroonie
authored andcommitted
ASoC: codec: tlv320aic32x4: Drop aic32x4_pdata usage
There is no machine is using aic32x4_pdata as platform_data, so remove the dead code. Cc: Markus Niebel <[email protected]> Cc: Alexander Stein <[email protected]> Reviewed-by: Alexander Stein <[email protected]> Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 347e9f5 commit 69d5b62

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

include/sound/tlv320aic32x4.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,4 @@
4040
struct aic32x4_setup_data {
4141
unsigned int gpio_func[5];
4242
};
43-
44-
struct aic32x4_pdata {
45-
struct aic32x4_setup_data *setup;
46-
u32 power_cfg;
47-
u32 micpga_routing;
48-
bool swapdacs;
49-
int rstn_gpio;
50-
};
51-
5243
#endif

sound/soc/codecs/tlv320aic32x4.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,6 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap,
13461346
enum aic32x4_type type)
13471347
{
13481348
struct aic32x4_priv *aic32x4;
1349-
struct aic32x4_pdata *pdata = dev->platform_data;
13501349
struct device_node *np = dev->of_node;
13511350
int ret;
13521351

@@ -1363,13 +1362,7 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap,
13631362

13641363
dev_set_drvdata(dev, aic32x4);
13651364

1366-
if (pdata) {
1367-
aic32x4->power_cfg = pdata->power_cfg;
1368-
aic32x4->swapdacs = pdata->swapdacs;
1369-
aic32x4->micpga_routing = pdata->micpga_routing;
1370-
aic32x4->rstn_gpio = pdata->rstn_gpio;
1371-
aic32x4->mclk_name = "mclk";
1372-
} else if (np) {
1365+
if (np) {
13731366
ret = aic32x4_parse_dt(aic32x4, np);
13741367
if (ret) {
13751368
dev_err(dev, "Failed to parse DT node\n");

0 commit comments

Comments
 (0)