diff options
author | Lucas Tanure <tanureal@opensource.cirrus.com> | 2022-04-13 10:37:13 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-04-13 10:42:32 +0200 |
commit | f7f207375d4e6eb9acc78d312eed8806b37d101a (patch) | |
tree | b8b76fd3e874a0f164346aae1feac6a671ee9fa3 /sound/soc/codecs/cs35l41.h | |
parent | Linux 5.18-rc2 (diff) | |
download | linux-f7f207375d4e6eb9acc78d312eed8806b37d101a.tar.xz linux-f7f207375d4e6eb9acc78d312eed8806b37d101a.zip |
ALSA: cs35l41: Unify hardware configuration
Both ASoC and HDA require to configure the GPIOs and Boost, so
create a single shared struct for hardware configuration.
Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220413083728.10730-2-tanureal@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs/cs35l41.h')
-rw-r--r-- | sound/soc/codecs/cs35l41.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/soc/codecs/cs35l41.h b/sound/soc/codecs/cs35l41.h index 88a3d6e3434f..e3369e0aa89f 100644 --- a/sound/soc/codecs/cs35l41.h +++ b/sound/soc/codecs/cs35l41.h @@ -44,7 +44,7 @@ enum cs35l41_cspl_mbox_cmd { struct cs35l41_private { struct wm_adsp dsp; /* needs to be first member */ struct snd_soc_codec *codec; - struct cs35l41_platform_data pdata; + struct cs35l41_hw_cfg hw_cfg; struct device *dev; struct regmap *regmap; struct regulator_bulk_data supplies[CS35L41_NUM_SUPPLIES]; @@ -53,8 +53,7 @@ struct cs35l41_private { struct gpio_desc *reset_gpio; }; -int cs35l41_probe(struct cs35l41_private *cs35l41, - struct cs35l41_platform_data *pdata); +int cs35l41_probe(struct cs35l41_private *cs35l41, const struct cs35l41_hw_cfg *hw_cfg); void cs35l41_remove(struct cs35l41_private *cs35l41); #endif /*__CS35L41_H__*/ |