Messages in this thread Patch in this message | | | From | Arvind Yadav <> | Subject | [PATCH] dmaengine: pl330: constify amba_id | Date | Wed, 23 Aug 2017 21:57:31 +0530 |
| |
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/pl330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index b19ee04..f122c2a 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -3023,7 +3023,7 @@ static int pl330_remove(struct amba_device *adev) return 0; } -static struct amba_id pl330_ids[] = { +static const struct amba_id pl330_ids[] = { { .id = 0x00041330, .mask = 0x000fffff, -- 2.7.4
| |