projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b80fa12
)
dmaengine: pl330: constify amba_id
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 16:27:31 +0000
(21:57 +0530)
committer
Vinod Koul
<vinod.koul@intel.com>
Mon, 28 Aug 2017 15:41:08 +0000
(21:11 +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>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/pl330.c
b/drivers/dma/pl330.c
index b19ee04567b57732a6519bd8fa18ace3a1c201ef..f122c2a7b9f0bc7383ac5114107fb4aac018066d 100644
(file)
--- 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,