Commit df7cc2aa authored by Flavio Suligoi's avatar Flavio Suligoi Committed by Vinod Koul

dmaengine: imx-sdma: align statement to open parenthesis

Alignment should match open parenthesis.
Signed-off-by: default avatarFlavio Suligoi <f.suligoi@asem.it>
Link: https://lore.kernel.org/r/20210928151833.589843-3-f.suligoi@asem.itSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 1f8595ef
...@@ -1241,7 +1241,7 @@ static int sdma_config_channel(struct dma_chan *chan) ...@@ -1241,7 +1241,7 @@ static int sdma_config_channel(struct dma_chan *chan)
} }
static int sdma_set_channel_priority(struct sdma_channel *sdmac, static int sdma_set_channel_priority(struct sdma_channel *sdmac,
unsigned int priority) unsigned int priority)
{ {
struct sdma_engine *sdma = sdmac->sdma; struct sdma_engine *sdma = sdmac->sdma;
int channel = sdmac->channel; int channel = sdmac->channel;
...@@ -1261,7 +1261,7 @@ static int sdma_request_channel0(struct sdma_engine *sdma) ...@@ -1261,7 +1261,7 @@ static int sdma_request_channel0(struct sdma_engine *sdma)
int ret = -EBUSY; int ret = -EBUSY;
sdma->bd0 = dma_alloc_coherent(sdma->dev, PAGE_SIZE, &sdma->bd0_phys, sdma->bd0 = dma_alloc_coherent(sdma->dev, PAGE_SIZE, &sdma->bd0_phys,
GFP_NOWAIT); GFP_NOWAIT);
if (!sdma->bd0) { if (!sdma->bd0) {
ret = -ENOMEM; ret = -ENOMEM;
goto out; goto out;
...@@ -1284,7 +1284,7 @@ static int sdma_alloc_bd(struct sdma_desc *desc) ...@@ -1284,7 +1284,7 @@ static int sdma_alloc_bd(struct sdma_desc *desc)
int ret = 0; int ret = 0;
desc->bd = dma_alloc_coherent(desc->sdmac->sdma->dev, bd_size, desc->bd = dma_alloc_coherent(desc->sdmac->sdma->dev, bd_size,
&desc->bd_phys, GFP_NOWAIT); &desc->bd_phys, GFP_NOWAIT);
if (!desc->bd) { if (!desc->bd) {
ret = -ENOMEM; ret = -ENOMEM;
goto out; goto out;
...@@ -1757,7 +1757,7 @@ static void sdma_issue_pending(struct dma_chan *chan) ...@@ -1757,7 +1757,7 @@ static void sdma_issue_pending(struct dma_chan *chan)
#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V4 46 #define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V4 46
static void sdma_add_scripts(struct sdma_engine *sdma, static void sdma_add_scripts(struct sdma_engine *sdma,
const struct sdma_script_start_addrs *addr) const struct sdma_script_start_addrs *addr)
{ {
s32 *addr_arr = (u32 *)addr; s32 *addr_arr = (u32 *)addr;
s32 *saddr_arr = (u32 *)sdma->script_addrs; s32 *saddr_arr = (u32 *)sdma->script_addrs;
...@@ -1840,8 +1840,8 @@ static void sdma_load_firmware(const struct firmware *fw, void *context) ...@@ -1840,8 +1840,8 @@ static void sdma_load_firmware(const struct firmware *fw, void *context)
clk_enable(sdma->clk_ahb); clk_enable(sdma->clk_ahb);
/* download the RAM image for SDMA */ /* download the RAM image for SDMA */
sdma_load_script(sdma, ram_code, sdma_load_script(sdma, ram_code,
header->ram_code_size, header->ram_code_size,
addr->ram_code_start_addr); addr->ram_code_start_addr);
clk_disable(sdma->clk_ipg); clk_disable(sdma->clk_ipg);
clk_disable(sdma->clk_ahb); clk_disable(sdma->clk_ahb);
...@@ -1850,8 +1850,8 @@ static void sdma_load_firmware(const struct firmware *fw, void *context) ...@@ -1850,8 +1850,8 @@ static void sdma_load_firmware(const struct firmware *fw, void *context)
sdma->fw_loaded = true; sdma->fw_loaded = true;
dev_info(sdma->dev, "loaded firmware %d.%d\n", dev_info(sdma->dev, "loaded firmware %d.%d\n",
header->version_major, header->version_major,
header->version_minor); header->version_minor);
err_firmware: err_firmware:
release_firmware(fw); release_firmware(fw);
......
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