diff mbox

ALSA: aaci: constify amba_id

Message ID f3b9e39c675002c49b2da48e67ca07076f3b9960.1503509388.git.arvind.yadav.cs@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Arvind Yadav Aug. 23, 2017, 5:32 p.m. UTC
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>
---
 sound/arm/aaci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c
index 4140b1b..05562ba 100644
--- a/sound/arm/aaci.c
+++ b/sound/arm/aaci.c
@@ -1085,7 +1085,7 @@  static int aaci_remove(struct amba_device *dev)
 	return 0;
 }
 
-static struct amba_id aaci_ids[] = {
+static const struct amba_id aaci_ids[] = {
 	{
 		.id	= 0x00041041,
 		.mask	= 0x000fffff,