Commit b6a3a880 authored by Daniela Mormocea's avatar Daniela Mormocea Committed by Greg Kroah-Hartman

staging: ralink-gdma: Avoid unnecessary line continuations

Get rid of unnecessary line continuations in
boolean expressions, warning detected by checkpatch
Signed-off-by: default avatarDaniela Mormocea <daniela.mormocea@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c78d9f6
...@@ -298,14 +298,14 @@ static int rt305x_gdma_start_transfer(struct gdma_dmaengine_chan *chan) ...@@ -298,14 +298,14 @@ static int rt305x_gdma_start_transfer(struct gdma_dmaengine_chan *chan)
if (chan->desc->direction == DMA_MEM_TO_DEV) { if (chan->desc->direction == DMA_MEM_TO_DEV) {
src_addr = sg->src_addr; src_addr = sg->src_addr;
dst_addr = chan->fifo_addr; dst_addr = chan->fifo_addr;
ctrl0 = GDMA_REG_CTRL0_DST_ADDR_FIXED | \ ctrl0 = GDMA_REG_CTRL0_DST_ADDR_FIXED |
(8 << GDMA_RT305X_CTRL0_SRC_REQ_SHIFT) | \ (8 << GDMA_RT305X_CTRL0_SRC_REQ_SHIFT) |
(chan->slave_id << GDMA_RT305X_CTRL0_DST_REQ_SHIFT); (chan->slave_id << GDMA_RT305X_CTRL0_DST_REQ_SHIFT);
} else if (chan->desc->direction == DMA_DEV_TO_MEM) { } else if (chan->desc->direction == DMA_DEV_TO_MEM) {
src_addr = chan->fifo_addr; src_addr = chan->fifo_addr;
dst_addr = sg->dst_addr; dst_addr = sg->dst_addr;
ctrl0 = GDMA_REG_CTRL0_SRC_ADDR_FIXED | \ ctrl0 = GDMA_REG_CTRL0_SRC_ADDR_FIXED |
(chan->slave_id << GDMA_RT305X_CTRL0_SRC_REQ_SHIFT) | \ (chan->slave_id << GDMA_RT305X_CTRL0_SRC_REQ_SHIFT) |
(8 << GDMA_RT305X_CTRL0_DST_REQ_SHIFT); (8 << GDMA_RT305X_CTRL0_DST_REQ_SHIFT);
} else if (chan->desc->direction == DMA_MEM_TO_MEM) { } else if (chan->desc->direction == DMA_MEM_TO_MEM) {
/* /*
...@@ -314,8 +314,8 @@ static int rt305x_gdma_start_transfer(struct gdma_dmaengine_chan *chan) ...@@ -314,8 +314,8 @@ static int rt305x_gdma_start_transfer(struct gdma_dmaengine_chan *chan)
*/ */
src_addr = sg->src_addr; src_addr = sg->src_addr;
dst_addr = sg->dst_addr; dst_addr = sg->dst_addr;
ctrl0 = GDMA_REG_CTRL0_SW_MODE | \ ctrl0 = GDMA_REG_CTRL0_SW_MODE |
(8 << GDMA_REG_CTRL1_SRC_REQ_SHIFT) | \ (8 << GDMA_REG_CTRL1_SRC_REQ_SHIFT) |
(8 << GDMA_REG_CTRL1_DST_REQ_SHIFT); (8 << GDMA_REG_CTRL1_DST_REQ_SHIFT);
} else { } else {
dev_err(dma_dev->ddev.dev, "direction type %d error\n", dev_err(dma_dev->ddev.dev, "direction type %d error\n",
...@@ -323,8 +323,8 @@ static int rt305x_gdma_start_transfer(struct gdma_dmaengine_chan *chan) ...@@ -323,8 +323,8 @@ static int rt305x_gdma_start_transfer(struct gdma_dmaengine_chan *chan)
return -EINVAL; return -EINVAL;
} }
ctrl0 |= (sg->len << GDMA_REG_CTRL0_TX_SHIFT) | \ ctrl0 |= (sg->len << GDMA_REG_CTRL0_TX_SHIFT) |
(chan->burst_size << GDMA_REG_CTRL0_BURST_SHIFT) | \ (chan->burst_size << GDMA_REG_CTRL0_BURST_SHIFT) |
GDMA_REG_CTRL0_DONE_INT | GDMA_REG_CTRL0_ENABLE; GDMA_REG_CTRL0_DONE_INT | GDMA_REG_CTRL0_ENABLE;
ctrl1 = chan->id << GDMA_REG_CTRL1_NEXT_SHIFT; ctrl1 = chan->id << GDMA_REG_CTRL1_NEXT_SHIFT;
...@@ -376,21 +376,21 @@ static int rt3883_gdma_start_transfer(struct gdma_dmaengine_chan *chan) ...@@ -376,21 +376,21 @@ static int rt3883_gdma_start_transfer(struct gdma_dmaengine_chan *chan)
src_addr = sg->src_addr; src_addr = sg->src_addr;
dst_addr = chan->fifo_addr; dst_addr = chan->fifo_addr;
ctrl0 = GDMA_REG_CTRL0_DST_ADDR_FIXED; ctrl0 = GDMA_REG_CTRL0_DST_ADDR_FIXED;
ctrl1 = (32 << GDMA_REG_CTRL1_SRC_REQ_SHIFT) | \ ctrl1 = (32 << GDMA_REG_CTRL1_SRC_REQ_SHIFT) |
(chan->slave_id << GDMA_REG_CTRL1_DST_REQ_SHIFT); (chan->slave_id << GDMA_REG_CTRL1_DST_REQ_SHIFT);
} else if (chan->desc->direction == DMA_DEV_TO_MEM) { } else if (chan->desc->direction == DMA_DEV_TO_MEM) {
src_addr = chan->fifo_addr; src_addr = chan->fifo_addr;
dst_addr = sg->dst_addr; dst_addr = sg->dst_addr;
ctrl0 = GDMA_REG_CTRL0_SRC_ADDR_FIXED; ctrl0 = GDMA_REG_CTRL0_SRC_ADDR_FIXED;
ctrl1 = (chan->slave_id << GDMA_REG_CTRL1_SRC_REQ_SHIFT) | \ ctrl1 = (chan->slave_id << GDMA_REG_CTRL1_SRC_REQ_SHIFT) |
(32 << GDMA_REG_CTRL1_DST_REQ_SHIFT) | \ (32 << GDMA_REG_CTRL1_DST_REQ_SHIFT) |
GDMA_REG_CTRL1_COHERENT; GDMA_REG_CTRL1_COHERENT;
} else if (chan->desc->direction == DMA_MEM_TO_MEM) { } else if (chan->desc->direction == DMA_MEM_TO_MEM) {
src_addr = sg->src_addr; src_addr = sg->src_addr;
dst_addr = sg->dst_addr; dst_addr = sg->dst_addr;
ctrl0 = GDMA_REG_CTRL0_SW_MODE; ctrl0 = GDMA_REG_CTRL0_SW_MODE;
ctrl1 = (32 << GDMA_REG_CTRL1_SRC_REQ_SHIFT) | \ ctrl1 = (32 << GDMA_REG_CTRL1_SRC_REQ_SHIFT) |
(32 << GDMA_REG_CTRL1_DST_REQ_SHIFT) | \ (32 << GDMA_REG_CTRL1_DST_REQ_SHIFT) |
GDMA_REG_CTRL1_COHERENT; GDMA_REG_CTRL1_COHERENT;
} else { } else {
dev_err(dma_dev->ddev.dev, "direction type %d error\n", dev_err(dma_dev->ddev.dev, "direction type %d error\n",
...@@ -398,8 +398,8 @@ static int rt3883_gdma_start_transfer(struct gdma_dmaengine_chan *chan) ...@@ -398,8 +398,8 @@ static int rt3883_gdma_start_transfer(struct gdma_dmaengine_chan *chan)
return -EINVAL; return -EINVAL;
} }
ctrl0 |= (sg->len << GDMA_REG_CTRL0_TX_SHIFT) | \ ctrl0 |= (sg->len << GDMA_REG_CTRL0_TX_SHIFT) |
(chan->burst_size << GDMA_REG_CTRL0_BURST_SHIFT) | \ (chan->burst_size << GDMA_REG_CTRL0_BURST_SHIFT) |
GDMA_REG_CTRL0_DONE_INT | GDMA_REG_CTRL0_ENABLE; GDMA_REG_CTRL0_DONE_INT | GDMA_REG_CTRL0_ENABLE;
ctrl1 |= chan->id << GDMA_REG_CTRL1_NEXT_SHIFT; ctrl1 |= chan->id << GDMA_REG_CTRL1_NEXT_SHIFT;
......
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