Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1718506 > unrolled thread

[PATCH] dmaengine: pl08x: constify amba_id

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-08-23 18:30 +0200
Last post2017-08-23 18:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] dmaengine: pl08x: constify amba_id Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-08-23 18:30 +0200

#1718506 — [PATCH] dmaengine: pl08x: constify amba_id

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-08-23 18:30 +0200
Subject[PATCH] dmaengine: pl08x: constify amba_id
Message-ID<uhGHw-2Qt-17@gated-at.bofh.it>
amba_id are not supposed to change at runtime. All functions
working with const amba_id. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/dma/amba-pl08x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 13cc95c..b52b0d5 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -3033,7 +3033,7 @@ static struct vendor_data vendor_ftdmac020 = {
 	.max_transfer_size = PL080_CONTROL_TRANSFER_SIZE_MASK,
 };
 
-static struct amba_id pl08x_ids[] = {
+static const struct amba_id pl08x_ids[] = {
 	/* Samsung PL080S variant */
 	{
 		.id	= 0x0a141080,
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web