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

Commit d454aee9 authored by Mark Brown's avatar Mark Brown Committed by Takashi Iwai
Browse files

[ALSA] soc - wm8731 - Clean up checkpatch warnings

parent b32432e3
Loading
Loading
Loading
Loading
+11 −12
Original line number Diff line number Diff line
@@ -154,8 +154,10 @@ static int wm8731_add_controls(struct snd_soc_codec *codec)
	int err, i;

	for (i = 0; i < ARRAY_SIZE(wm8731_snd_controls); i++) {
		if ((err = snd_ctl_add(codec->card,
				snd_soc_cnew(&wm8731_snd_controls[i],codec, NULL))) < 0)
		err = snd_ctl_add(codec->card,
				  snd_soc_cnew(&wm8731_snd_controls[i],
						codec, NULL));
		if (err < 0)
			return err;
	}

@@ -221,15 +223,13 @@ static int wm8731_add_widgets(struct snd_soc_codec *codec)
{
	int i;

	for(i = 0; i < ARRAY_SIZE(wm8731_dapm_widgets); i++) {
	for (i = 0; i < ARRAY_SIZE(wm8731_dapm_widgets); i++)
		snd_soc_dapm_new_control(codec, &wm8731_dapm_widgets[i]);
	}

	/* set up audio path interconnects */
	for(i = 0; intercon[i][0] != NULL; i++) {
	for (i = 0; intercon[i][0] != NULL; i++)
		snd_soc_dapm_connect_input(codec, intercon[i][0],
			intercon[i][1], intercon[i][2]);
	}

	snd_soc_dapm_new_widgets(codec);
	return 0;
@@ -749,7 +749,6 @@ struct snd_soc_codec_device soc_codec_dev_wm8731 = {
	.suspend = 	wm8731_suspend,
	.resume =	wm8731_resume,
};

EXPORT_SYMBOL_GPL(soc_codec_dev_wm8731);

MODULE_DESCRIPTION("ASoC WM8731 driver");