asoc: use ASoC API to set driver component name prefix

during devm_snd_soc_register_card(), the name_prefix can be set
if "sound-name-prefix" is provided in the DT nodes.

The original approach to set prefix would possibly cause ASoC
component probe failed if prefix has not set before probe is called

Change-Id: Ie78d042cda24b7d1d926223d476786e13d965ac7
Signed-off-by: Junkai Cai <quic_junkai@quicinc.com>
Этот коммит содержится в:
Junkai Cai
2021-11-11 16:49:50 -08:00
коммит произвёл Gerrit - the friendly Code Review server
родитель 7795165e0a
Коммит 97e37eeee3
5 изменённых файлов: 1 добавлений и 56 удалений

Просмотреть файл

@@ -165,7 +165,6 @@ struct wsa884x_priv {
int num_supplies;
struct regulator_bulk_data *supplies;
unsigned long status_mask;
char *wsa884x_name_prefix;
struct snd_soc_dai_driver *dai_driver;
struct snd_soc_component_driver *driver;
};