Skip to content

Commit 547b311

Browse files
bjdooks-ctvinodkoul
authored andcommitted
dmaengine: tegra: fix incorrect case of DMA
The use of Dma is annoying, since it is an acronym so should be all upper case. Fix this throughout the driver. Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Acked-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent 216a1d7 commit 547b311

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

drivers/dma/tegra20-apb-dma.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ struct tegra_dma_channel_regs {
146146
};
147147

148148
/*
149-
* tegra_dma_sg_req: Dma request details to configure hardware. This
149+
* tegra_dma_sg_req: DMA request details to configure hardware. This
150150
* contains the details for one transfer to configure DMA hw.
151151
* The client's request for data transfer can be broken into multiple
152152
* sub-transfer as per requester details and hw support.
@@ -574,7 +574,7 @@ static bool handle_continuous_head_request(struct tegra_dma_channel *tdc,
574574
struct tegra_dma_sg_req *hsgreq = NULL;
575575

576576
if (list_empty(&tdc->pending_sg_req)) {
577-
dev_err(tdc2dev(tdc), "Dma is running without req\n");
577+
dev_err(tdc2dev(tdc), "DMA is running without req\n");
578578
tegra_dma_stop(tdc);
579579
return false;
580580
}
@@ -587,7 +587,7 @@ static bool handle_continuous_head_request(struct tegra_dma_channel *tdc,
587587
hsgreq = list_first_entry(&tdc->pending_sg_req, typeof(*hsgreq), node);
588588
if (!hsgreq->configured) {
589589
tegra_dma_stop(tdc);
590-
dev_err(tdc2dev(tdc), "Error in dma transfer, aborting dma\n");
590+
dev_err(tdc2dev(tdc), "Error in DMA transfer, aborting DMA\n");
591591
tegra_dma_abort_all(tdc);
592592
return false;
593593
}
@@ -922,7 +922,7 @@ static int get_transfer_param(struct tegra_dma_channel *tdc,
922922
return 0;
923923

924924
default:
925-
dev_err(tdc2dev(tdc), "Dma direction is not supported\n");
925+
dev_err(tdc2dev(tdc), "DMA direction is not supported\n");
926926
return -EINVAL;
927927
}
928928
return -EINVAL;
@@ -955,7 +955,7 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_slave_sg(
955955
enum dma_slave_buswidth slave_bw;
956956

957957
if (!tdc->config_init) {
958-
dev_err(tdc2dev(tdc), "dma channel is not configured\n");
958+
dev_err(tdc2dev(tdc), "DMA channel is not configured\n");
959959
return NULL;
960960
}
961961
if (sg_len < 1) {
@@ -988,7 +988,7 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_slave_sg(
988988

989989
dma_desc = tegra_dma_desc_get(tdc);
990990
if (!dma_desc) {
991-
dev_err(tdc2dev(tdc), "Dma descriptors not available\n");
991+
dev_err(tdc2dev(tdc), "DMA descriptors not available\n");
992992
return NULL;
993993
}
994994
INIT_LIST_HEAD(&dma_desc->tx_list);
@@ -1008,14 +1008,14 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_slave_sg(
10081008
if ((len & 3) || (mem & 3) ||
10091009
(len > tdc->tdma->chip_data->max_dma_count)) {
10101010
dev_err(tdc2dev(tdc),
1011-
"Dma length/memory address is not supported\n");
1011+
"DMA length/memory address is not supported\n");
10121012
tegra_dma_desc_put(tdc, dma_desc);
10131013
return NULL;
10141014
}
10151015

10161016
sg_req = tegra_dma_sg_req_get(tdc);
10171017
if (!sg_req) {
1018-
dev_err(tdc2dev(tdc), "Dma sg-req not available\n");
1018+
dev_err(tdc2dev(tdc), "DMA sg-req not available\n");
10191019
tegra_dma_desc_put(tdc, dma_desc);
10201020
return NULL;
10211021
}
@@ -1090,7 +1090,7 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic(
10901090
* terminating the DMA.
10911091
*/
10921092
if (tdc->busy) {
1093-
dev_err(tdc2dev(tdc), "Request not allowed when dma running\n");
1093+
dev_err(tdc2dev(tdc), "Request not allowed when DMA running\n");
10941094
return NULL;
10951095
}
10961096

@@ -1147,7 +1147,7 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic(
11471147
while (remain_len) {
11481148
sg_req = tegra_dma_sg_req_get(tdc);
11491149
if (!sg_req) {
1150-
dev_err(tdc2dev(tdc), "Dma sg-req not available\n");
1150+
dev_err(tdc2dev(tdc), "DMA sg-req not available\n");
11511151
tegra_dma_desc_put(tdc, dma_desc);
11521152
return NULL;
11531153
}

0 commit comments

Comments
 (0)