mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 05:12:59 +01:00
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]>
This commit is contained in:
1 parent
347e9f5043
commit
69d5b62c4b
2 files changed
+1
-17
No files matched your search
@@ -40,13 +40,4 @@
|
||||
struct aic32x4_setup_data {
|
||||
unsigned int gpio_func[5];
|
||||
};
|
||||
|
||||
struct aic32x4_pdata {
|
||||
struct aic32x4_setup_data *setup;
|
||||
u32 power_cfg;
|
||||
u32 micpga_routing;
|
||||
bool swapdacs;
|
||||
int rstn_gpio;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -1346,7 +1346,6 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap,
|
||||
enum aic32x4_type type)
|
||||
{
|
||||
struct aic32x4_priv *aic32x4;
|
||||
struct aic32x4_pdata *pdata = dev->platform_data;
|
||||
struct device_node *np = dev->of_node;
|
||||
int ret;
|
||||
|
||||
@@ -1363,13 +1362,7 @@ int aic32x4_probe(struct device *dev, struct regmap *regmap,
|
||||
|
||||
dev_set_drvdata(dev, aic32x4);
|
||||
|
||||
if (pdata) {
|
||||
aic32x4->power_cfg = pdata->power_cfg;
|
||||
aic32x4->swapdacs = pdata->swapdacs;
|
||||
aic32x4->micpga_routing = pdata->micpga_routing;
|
||||
aic32x4->rstn_gpio = pdata->rstn_gpio;
|
||||
aic32x4->mclk_name = "mclk";
|
||||
} else if (np) {
|
||||
if (np) {
|
||||
ret = aic32x4_parse_dt(aic32x4, np);
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to parse DT node\n");
|
||||
|
||||
Reference in new issue
Block a user