Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932476AbdHWRdD (ORCPT ); Wed, 23 Aug 2017 13:33:03 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36963 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932216AbdHWRdC (ORCPT ); Wed, 23 Aug 2017 13:33:02 -0400 From: Arvind Yadav To: perex@perex.cz, tiwai@suse.com Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH] ALSA: aaci: constify amba_id Date: Wed, 23 Aug 2017 23:02:50 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 615 Lines: 23 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 --- sound/arm/aaci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.7.4