From patchwork Wed Aug 23 17:32:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9917991 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 808FC600C5 for ; Wed, 23 Aug 2017 17:33:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68422289D5 for ; Wed, 23 Aug 2017 17:33:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D2B8289E0; Wed, 23 Aug 2017 17:33:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A03A7289D5 for ; Wed, 23 Aug 2017 17:33:09 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3505B266AE4; Wed, 23 Aug 2017 19:33:08 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 8834B2677CD; Wed, 23 Aug 2017 19:33:06 +0200 (CEST) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by alsa0.perex.cz (Postfix) with ESMTP id 3047C266A7C for ; Wed, 23 Aug 2017 19:33:02 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id m89so117270pfk.5 for ; Wed, 23 Aug 2017 10:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=iJ7eWwtxHycJQ8LajLPZdeiw7s5mo+1LWYfrkstiBmE=; b=TD0e19FzBJZo9OCN7T+xf852JjK3hwjBhEtNaXju2U1T+CYuMlcOWQO8JAPev8u5Li 7Ls8OJ4p6YOUC/dJhfdV+SP+mpVANhFwD39jXly1WaB7cHUmx9OwGHjIDoMuoOvPfSvy w+vdy+XedobW5IKbD8n5xE9TyR4QovGYbFTNY05p1qf9M5BSsPBOyy3FlU2OnXrng8MW LDlh+QYyf46gWydgEopHSX4X1dZNj3hfexJ3MEcB0psxfIAGeJPQ7lyeMsvpZARxp1/U 1vgzCjt6L5clloEv1ESCHTCDUbtKXCU7iHtTzhYy7/JaIWWBwdlfapHaA5boUIW9PK/K VpRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iJ7eWwtxHycJQ8LajLPZdeiw7s5mo+1LWYfrkstiBmE=; b=RCHew62PQWsFwBPa8foc0LKMyo8/0B/snYP7VV7yrXtJmjhGHysiTp2iKXFl6z1y+l wo/Tov0blA2xhg1LaKJ/oj1+6+xLyVfvdnaivXOQNE5XVS8UEIRtlDQqvG7XQW3yUwf2 qVRj0ud1aWUH9RpzvV9NIrZPTL57Ue7Fr3XHTI6gywHlvp0tg6+rQNEEBSU5DzL+wiWU 8Bv6Bph9+d+Zr7I4Pxn0fl52ZQ+OfDcoXpuMWksFJ51V4uYTz4lkGwsnRqHTvx8VH6e+ AHJoHGUGl9vJoEHy2X0pvQN5qumeBWRmylwJeK/xSBE2sk/h+kvAjw+j/vEMLq9n9MYa aIhw== X-Gm-Message-State: AHYfb5g5i377uFc99sDlXXGJgRHnFojYXOC92WBrIwpctU0vc70voxtZ JoyKHOGIK0ei3Q== X-Received: by 10.84.132.13 with SMTP id 13mr3957593ple.42.1503509581710; Wed, 23 Aug 2017 10:33:01 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.93]) by smtp.gmail.com with ESMTPSA id m10sm4444549pgd.62.2017.08.23.10.32.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Aug 2017 10:32:58 -0700 (PDT) From: Arvind Yadav To: perex@perex.cz, tiwai@suse.com Date: Wed, 23 Aug 2017 23:02:50 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH] ALSA: aaci: constify amba_id X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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,