Commit 1215daee authored by Vinod Koul's avatar Vinod Koul Committed by Greg Kroah-Hartman

soundwire: intel: more alignment fixes

Found few more issues reported checkpatch on code alignment so fix those
as well in the intel module.
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 62f0cec3
...@@ -691,8 +691,8 @@ static int intel_create_dai(struct sdw_cdns *cdns, ...@@ -691,8 +691,8 @@ static int intel_create_dai(struct sdw_cdns *cdns,
return -ENOMEM; return -ENOMEM;
if (type == INTEL_PDI_BD || type == INTEL_PDI_OUT) { if (type == INTEL_PDI_BD || type == INTEL_PDI_OUT) {
dais[i].playback.stream_name = kasprintf(GFP_KERNEL, dais[i].playback.stream_name =
"SDW%d Tx%d", kasprintf(GFP_KERNEL, "SDW%d Tx%d",
cdns->instance, i); cdns->instance, i);
if (!dais[i].playback.stream_name) { if (!dais[i].playback.stream_name) {
kfree(dais[i].name); kfree(dais[i].name);
...@@ -706,8 +706,8 @@ static int intel_create_dai(struct sdw_cdns *cdns, ...@@ -706,8 +706,8 @@ static int intel_create_dai(struct sdw_cdns *cdns,
} }
if (type == INTEL_PDI_BD || type == INTEL_PDI_IN) { if (type == INTEL_PDI_BD || type == INTEL_PDI_IN) {
dais[i].capture.stream_name = kasprintf(GFP_KERNEL, dais[i].capture.stream_name =
"SDW%d Rx%d", kasprintf(GFP_KERNEL, "SDW%d Rx%d",
cdns->instance, i); cdns->instance, i);
if (!dais[i].capture.stream_name) { if (!dais[i].capture.stream_name) {
kfree(dais[i].name); kfree(dais[i].name);
...@@ -749,40 +749,40 @@ static int intel_register_dai(struct sdw_intel *sdw) ...@@ -749,40 +749,40 @@ static int intel_register_dai(struct sdw_intel *sdw)
/* Create PCM DAIs */ /* Create PCM DAIs */
stream = &cdns->pcm; stream = &cdns->pcm;
ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, stream->num_in,
stream->num_in, off, stream->num_ch_in, true); off, stream->num_ch_in, true);
if (ret) if (ret)
return ret; return ret;
off += cdns->pcm.num_in; off += cdns->pcm.num_in;
ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pcm.num_out,
cdns->pcm.num_out, off, stream->num_ch_out, true); off, stream->num_ch_out, true);
if (ret) if (ret)
return ret; return ret;
off += cdns->pcm.num_out; off += cdns->pcm.num_out;
ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pcm.num_bd,
cdns->pcm.num_bd, off, stream->num_ch_bd, true); off, stream->num_ch_bd, true);
if (ret) if (ret)
return ret; return ret;
/* Create PDM DAIs */ /* Create PDM DAIs */
stream = &cdns->pdm; stream = &cdns->pdm;
off += cdns->pcm.num_bd; off += cdns->pcm.num_bd;
ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pdm.num_in,
cdns->pdm.num_in, off, stream->num_ch_in, false); off, stream->num_ch_in, false);
if (ret) if (ret)
return ret; return ret;
off += cdns->pdm.num_in; off += cdns->pdm.num_in;
ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, ret = intel_create_dai(cdns, dais, INTEL_PDI_OUT, cdns->pdm.num_out,
cdns->pdm.num_out, off, stream->num_ch_out, false); off, stream->num_ch_out, false);
if (ret) if (ret)
return ret; return ret;
off += cdns->pdm.num_bd; off += cdns->pdm.num_bd;
ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pdm.num_bd,
cdns->pdm.num_bd, off, stream->num_ch_bd, false); off, stream->num_ch_bd, false);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment