Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f40ea4c authored by Banajit Goswami's avatar Banajit Goswami
Browse files

ASoC: codecs: use correct function to create subdir entry



For WCD93xx and WSA881x codecs, use the correct function
to create a subdirectory under a given parent.

Change-Id: Ie201ba56f595666389edbf676f943880c5b8caac
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
parent f1aa6ffe
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -12294,9 +12294,8 @@ int tasha_codec_info_create_codec_entry(struct snd_info_entry *codec_root,

	tasha = snd_soc_codec_get_drvdata(codec);
	card = codec->component.card;
	tasha->entry = snd_register_module_info(codec_root->module,
						"tasha",
						codec_root);
	tasha->entry = snd_info_create_subdir(codec_root->module,
					      "tasha", codec_root);
	if (!tasha->entry) {
		dev_dbg(codec->dev, "%s: failed to create wcd9335 entry\n",
			__func__);
+2 −3
Original line number Diff line number Diff line
@@ -8021,9 +8021,8 @@ int tavil_codec_info_create_codec_entry(struct snd_info_entry *codec_root,

	tavil = snd_soc_codec_get_drvdata(codec);
	card = codec->component.card;
	tavil->entry = snd_register_module_info(codec_root->module,
						"tavil",
						codec_root);
	tavil->entry = snd_info_create_subdir(codec_root->module,
					      "tavil", codec_root);
	if (!tavil->entry) {
		dev_dbg(codec->dev, "%s: failed to create wcd934x entry\n",
			__func__);
+3 −3
Original line number Diff line number Diff line
@@ -253,7 +253,7 @@ int wsa881x_codec_info_create_codec_entry(struct snd_info_entry *codec_root,
	snprintf(name, sizeof(name), "%s.%x", "wsa881x",
		 (u32)wsa881x->swr_slave->addr);

	wsa881x->entry = snd_register_module_info(codec_root->module,
	wsa881x->entry = snd_info_create_subdir(codec_root->module,
						(const char *)name,
						codec_root);
	if (!wsa881x->entry) {