Staging: drivers: dma: ste_dma40: Fix line over 80 characters warning
Subsystems (2)
PATCH 1/1 Staging: drivers: dma: ste_dma40: Fix line over 80 characters warning
WARNING: line over 80 characters
chackpatch.pl warning in ste_dma40.c
Signed-off-by Hatice ERTURK <[email protected]>
--- drivers/dma/ste_dma40.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
drivers/dma/ste_dma40.c +8 -4
@@ -1011,7 +1011,8 @@ static int d40_psize_2_burst_size(bool is_log, int psize)* The dma only supports transmitting packages up to * STEDMA40_MAX_SEG_SIZE * data_width, where data_width is stored in Bytes. * -* Calculate the total number of dma elements required to send the entire sg list. +* Calculate the total number of dma +elements required to send the entire sg list. */ static int d40_size_2_dmalen (int size,u32 data_width1,u32 data_width2) {
@@ -1975,7 +1976,8 @@ static int d40_config_memcpy(struct d40_chan *d40c)if (dma_has_cap (DMA_MEMCPY , cap) && !dma_has_cap (DMA_SLAVE , cap)) { d40c->dma_cfg = dma40_memcpy_conf_log; - d40c->dma_cfg.dev_type = dma40_memcpy_channels[d40c->chan.chan_id]; + d40c->dma_cfg.dev_type = + dma40_memcpy_channels[d40c->chan.chan_id];d40_log_cfg (&d40c->dma_cfg, &d40c->log_def.lcsp1, &d40c->log_def.lcsp3);
@@ -2518,7 +2520,8 @@ d40_prep_memcpy_sg(struct dma_chan *chan,if (dst_nents != src_nents)return NULL ; -return d40_prep_sg (chan, src_sg, dst_sg, src_nents,DMA_NONE , dma_flags); +return d40_prep_sg (chan, src_sg, dst_sg, + src_nents,DMA_NONE , dma_flags); } static struct dma_async_tx_descriptor *
@@ -3216,7 +3219,8 @@ static struct d40_base * __init d40_hw_detect_init(struct platform_device *pdev)*/ rev =AMBA_REV_BITS (pid);if (rev <2 ) { -d40_err (&pdev->dev,"hardware revision: %d is not supported" , rev); +d40_err (&pdev->dev, +"hardware revision: %d is not supported" , rev); goto failure; }
Signature · 1 line
1.9.1
Quoted 13 lines · Hatice ERTÜRK
WARNING: line over 80 characters
chackpatch.pl warning inste_dma40.cSigned-off-by Hatice ERTURK <[email protected]>--- drivers/dma/ste_dma40.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)drivers/dma/ste_dma40.c +0
-0
drivers/dma/ste_dma40.c static int d40_psize_2_burst_size(bool is_log, int psize) · line 1015
Quoted 6 lines
drivers/dma/ste_dma40.c +2
-1@@ -1011,7 +1011,8 @@ static int d40_psize_2_burst_size(bool is_log, int psize)* The dma only supports transmitting packages up to * STEDMA40_MAX_SEG_SIZE * data_width, where data_width is stored in Bytes. * -* Calculate the total number of dma elements required to send the entire sg list. +* Calculate the total number of dma +elements required to send the entire sg list.
Why cut it here? Since this is an English sentence, it would be reasonable to make the sentence go on as long as possible, and then line the rest up with the leftmost character of the text on the line above.
drivers/dma/ste_dma40.c static int d40_config_memcpy(struct d40_chan *d40c) · line 1980
Quoted 10 lines
drivers/dma/ste_dma40.c +2
-1*/ static int d40_size_2_dmalen (int size,u32 data_width1,u32 data_width2) {@@ -1975,7 +1976,8 @@ static int d40_config_memcpy(struct d40_chan *d40c)if (dma_has_cap (DMA_MEMCPY , cap) && !dma_has_cap (DMA_SLAVE , cap)) { d40c->dma_cfg = dma40_memcpy_conf_log; - d40c->dma_cfg.dev_type = dma40_memcpy_channels[d40c->chan.chan_id]; + d40c->dma_cfg.dev_type = + dma40_memcpy_channels[d40c->chan.chan_id];
On the other hand, for an assignment it would be reasonable to indent the continuation line. See what is done elsewhere in the file, for example.
Quoted 32 lines
drivers/dma/ste_dma40.c +4
-2d40_log_cfg (&d40c->dma_cfg, &d40c->log_def.lcsp1, &d40c->log_def.lcsp3);@@ -2518,7 +2520,8 @@ d40_prep_memcpy_sg(struct dma_chan *chan,if (dst_nents != src_nents)return NULL ; -return d40_prep_sg (chan, src_sg, dst_sg, src_nents,DMA_NONE , dma_flags); +return d40_prep_sg (chan, src_sg, dst_sg, + src_nents,DMA_NONE , dma_flags); } static struct dma_async_tx_descriptor *@@ -3216,7 +3219,8 @@ static struct d40_base * __init d40_hw_detect_init(struct platform_device *pdev)*/ rev =AMBA_REV_BITS (pid);if (rev <2 ) { -d40_err (&pdev->dev,"hardware revision: %d is not supported" , rev); +d40_err (&pdev->dev, +"hardware revision: %d is not supported" , rev); goto failure; }Signature · 8 lines
1.9.1 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424376376-29500-1-git-send-email-haticeerturk27%40gmail.com. For more options, visit https://groups.google.com/d/optout.