Commit 139cad4b authored by Lucas Tanure's avatar Lucas Tanure Committed by Mark Brown

ASoC: cs35l41: Remove unnecessary param

cs35l41_private is not used on cs35l41_handle_pdata
Signed-off-by: default avatarLucas Tanure <tanureal@opensource.cirrus.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220304150721.3802-5-tanureal@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent dacf1497
...@@ -1115,9 +1115,7 @@ static const struct snd_soc_component_driver soc_component_dev_cs35l41 = { ...@@ -1115,9 +1115,7 @@ static const struct snd_soc_component_driver soc_component_dev_cs35l41 = {
.set_sysclk = cs35l41_component_set_sysclk, .set_sysclk = cs35l41_component_set_sysclk,
}; };
static int cs35l41_handle_pdata(struct device *dev, static int cs35l41_handle_pdata(struct device *dev, struct cs35l41_platform_data *pdata)
struct cs35l41_platform_data *pdata,
struct cs35l41_private *cs35l41)
{ {
struct cs35l41_irq_cfg *irq_gpio1_config = &pdata->irq_config1; struct cs35l41_irq_cfg *irq_gpio1_config = &pdata->irq_config1;
struct cs35l41_irq_cfg *irq_gpio2_config = &pdata->irq_config2; struct cs35l41_irq_cfg *irq_gpio2_config = &pdata->irq_config2;
...@@ -1260,7 +1258,7 @@ int cs35l41_probe(struct cs35l41_private *cs35l41, ...@@ -1260,7 +1258,7 @@ int cs35l41_probe(struct cs35l41_private *cs35l41,
if (pdata) { if (pdata) {
cs35l41->pdata = *pdata; cs35l41->pdata = *pdata;
} else { } else {
ret = cs35l41_handle_pdata(cs35l41->dev, &cs35l41->pdata, cs35l41); ret = cs35l41_handle_pdata(cs35l41->dev, &cs35l41->pdata);
if (ret != 0) if (ret != 0)
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment