Skip to content

Commit 92591ef

Browse files
arnopobroonie
authored andcommitted
ASoC: sti-sas: add missing return in messages strings
Signed-off-by: Arnaud Pouliquen <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 165a57a commit 92591ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sound/soc/codecs/sti-sas.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static int sti_sas_init_sas_registers(struct snd_soc_codec *codec,
124124
ret = snd_soc_update_bits(codec, STIH407_AUDIO_GLUE_CTRL,
125125
SPDIF_BIPHASE_IDLE_MASK, 0);
126126
if (ret < 0) {
127-
dev_err(codec->dev, "Failed to update SPDIF registers");
127+
dev_err(codec->dev, "Failed to update SPDIF registers\n");
128128
return ret;
129129
}
130130

@@ -144,7 +144,7 @@ static int sti_sas_init_sas_registers(struct snd_soc_codec *codec,
144144
STIH407_DAC_SOFTMUTE_MASK);
145145

146146
if (ret < 0) {
147-
dev_err(codec->dev, "Failed to update DAC registers");
147+
dev_err(codec->dev, "Failed to update DAC registers\n");
148148
return ret;
149149
}
150150

@@ -292,13 +292,13 @@ static int sti_sas_prepare(struct snd_pcm_substream *substream,
292292
switch (dai->id) {
293293
case STI_SAS_DAI_SPDIF_OUT:
294294
if ((drvdata->spdif.mclk / runtime->rate) != 128) {
295-
dev_err(codec->dev, "unexpected mclk-fs ratio");
295+
dev_err(codec->dev, "unexpected mclk-fs ratio\n");
296296
return -EINVAL;
297297
}
298298
break;
299299
case STI_SAS_DAI_ANALOG_OUT:
300300
if ((drvdata->dac.mclk / runtime->rate) != 256) {
301-
dev_err(codec->dev, "unexpected mclk-fs ratio");
301+
dev_err(codec->dev, "unexpected mclk-fs ratio\n");
302302
return -EINVAL;
303303
}
304304
break;
@@ -423,7 +423,7 @@ static int sti_sas_driver_probe(struct platform_device *pdev)
423423
/* Populate data structure depending on compatibility */
424424
of_id = of_match_node(sti_sas_dev_match, pnode);
425425
if (!of_id->data) {
426-
dev_err(&pdev->dev, "data associated to device is missing");
426+
dev_err(&pdev->dev, "data associated to device is missing\n");
427427
return -EINVAL;
428428
}
429429

0 commit comments

Comments
 (0)