From patchwork Wed Aug 23 12:09:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9917241 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 7C8F1603FA for ; Wed, 23 Aug 2017 12:10:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EEA028692 for ; Wed, 23 Aug 2017 12:10:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6373C286D5; Wed, 23 Aug 2017 12:10:51 +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 AB50E285FF for ; Wed, 23 Aug 2017 12:10:50 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 169462672A4; Wed, 23 Aug 2017 14:10:00 +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 1F5E4267269; Wed, 23 Aug 2017 14:09:58 +0200 (CEST) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by alsa0.perex.cz (Postfix) with ESMTP id D59FA267265 for ; Wed, 23 Aug 2017 14:09:52 +0200 (CEST) Received: by mail-pg0-f67.google.com with SMTP id u191so1347648pgc.0 for ; Wed, 23 Aug 2017 05:09:52 -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:in-reply-to:references; bh=wLpOuzJ7dMPnh/DREW0Mr2yTxuYV2yXlc5uFMizcJII=; b=m3RHvCQG2E4C97i1JcNjcCkGKoVvTMoaX/m1XZ0Lm3QPXJ9TPBXDc93RCvswDxEeiW azGScZ6PeAhRImwwnNGdFVT8n/3Jd1p1mrP714KnCbQ4s8YMQxJFHlO5FhnCXVGWCC94 HW0DoNK13hHVyfSR2Rj9ZhWxfKWqf3f4T3VYhewgE5jezM37Y3ugCxRHFF0+FWBdElyw vACeWqBnTxY3S4RK2/ms195g8Zsa/47p7pJNWaXrooaYrQdCiqoeFG3APQW1ZcbFFI4J l0DhQgSefTJO9R+wVTppReTlrFHxcbOLNOEwiZkHGUpyVpwVj9kU7zaZvKuLgxiMkUQ6 lSnA== 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:in-reply-to :references; bh=wLpOuzJ7dMPnh/DREW0Mr2yTxuYV2yXlc5uFMizcJII=; b=CnBAFdQRn8cWfzhveQLrTFImckBYDVqYMzGA9JnDZG66/8abAM6sAlwtyNx46YV04y GDqeyIQF1IDYDDrK/mVnXFYTxDT8Zbf3AdxJ6VL3HYj4F0n8MvgRv9evECpDQiZMRekV uYu6ZFeyqEByqBU5jZ65qzg9SaRNR7kMZaCiDjyWlg5Ei98Hqp+oxriTEfy6S6JEnhRG iC1YHr3VbCpV9kuq7hUrOiKALgGTqm9DrEQ+K117/A+MinuwDuEMl6ZDyQ3S9QU4UCSs l6uUnbm1JNxQAukUpBTpuTLCheB6evdX5gONRx0v4KxgIDfRInbQvG6UizDJ4PhNp+/f duSw== X-Gm-Message-State: AHYfb5hJHqYlTW1OZbImlAJ7iN1WQ9/xVYLVTGAGjPXNOqw2TIb3NoV0 KZKlCEHv9+BjcQ== X-Received: by 10.98.5.7 with SMTP id 7mr2499858pff.105.1503490191339; Wed, 23 Aug 2017 05:09:51 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id r3sm3769377pfg.14.2017.08.23.05.09.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Aug 2017 05:09:50 -0700 (PDT) From: Arvind Yadav To: linux@armlinux.org.uk, perex@perex.cz, tiwai@suse.com Date: Wed, 23 Aug 2017 17:39:26 +0530 Message-Id: <1503490168-26501-3-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503490168-26501-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1503490168-26501-1-git-send-email-arvind.yadav.cs@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 2/4] ALSA: ac97c: constify ac97_pcm structures 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 ac97_pcm are not supposed to change at runtime. All functions working with ac97_pcm provided by work with const ac97_pcm. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/atmel/ac97c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index 70616da..345b943 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c @@ -558,7 +558,7 @@ static irqreturn_t atmel_ac97c_interrupt(int irq, void *dev) return retval; } -static struct ac97_pcm at91_ac97_pcm_defs[] = { +static const struct ac97_pcm at91_ac97_pcm_defs[] = { /* Playback */ { .exclusive = 1,