From patchwork Thu Aug 17 10:06:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9905525 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 A6AAA60244 for ; Thu, 17 Aug 2017 10:08:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA48B28ACA for ; Thu, 17 Aug 2017 10:08:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F20D28AD6; Thu, 17 Aug 2017 10:08:58 +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=0.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,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 106A228ACA for ; Thu, 17 Aug 2017 10:08:58 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id E9E62267677; Thu, 17 Aug 2017 12:07:21 +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 04D91267669; Thu, 17 Aug 2017 12:07:20 +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 C5808267661 for ; Thu, 17 Aug 2017 12:07:16 +0200 (CEST) Received: by mail-pg0-f67.google.com with SMTP id y192so9126704pgd.1 for ; Thu, 17 Aug 2017 03:07:16 -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=yBmVhwOKDEUAc7/JzA1cGcRwXGVYTRL/tH/PaCa+hW4=; b=U5hdaA6By0SOoPKvHr0xOzVnVz1TMb1D3/3WzKRdbFPRODKMNZI6v9WKRgr841kfOt n/jfYZ447BPP20mnxAY+qG6s6IWVTv9sc3mQ46cW0sszFGJwzm66VuZydWiaURge2JOu m5oUNVRP7NpcAFFg3vtma5QmN23+rhZZYXDyi8FR33gReSTchDWb9Ki1hqLURKDGOFqn 1ggWzVmvpRMfH8Pp9UCFDTIVe85ZwwLZtc84cOdkfsUiwzNSyl0b+fItMrZBVN3lMzut f6CYtCpiRmrgTPqcw2EJc6bSTCUx43D0zvATXgrbTMCaPm2eLm90PFP3PTsgVfN8gFSB iDqQ== 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=yBmVhwOKDEUAc7/JzA1cGcRwXGVYTRL/tH/PaCa+hW4=; b=oUUgE8lHHnjJljiOgJ6iw+sQz70mOiVerk4jjXdpYS66/gtBV5nZ06FH37fYioidi+ fKY48Kv24PG7+kdsMKJMiXsxd8UK183AwdCrn28eiPEveFSGW1U7pgznVfS0P/2M8VmY n61/dED+afdnaQ/yxF/DciAiZBhncP9dVhocZW5CZm86SlerQkpj/USyylSPbBWScfLh 8ntbiPfFivTCJAPPO1x8ufwNPCdzojH8YQgf/vq16makCwElXzV0rbStYSYnfowz/ryN X25SzGlwid9zd6YOcyykXoH/pkPrDR7wHQChd7zMbxY42pRyaAp0XEtSQJc1zabsr42+ f35A== X-Gm-Message-State: AHYfb5jY/qiksbLzqnfm6pG2W54zcAQHwyp4a8Jv2CU32tFwFBOAECfl fVScYis6UqeZag== X-Received: by 10.84.130.39 with SMTP id 36mr5121149plc.95.1502964435824; Thu, 17 Aug 2017 03:07:15 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.76]) by smtp.gmail.com with ESMTPSA id p81sm1459632pfl.23.2017.08.17.03.07.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Aug 2017 03:07:15 -0700 (PDT) From: Arvind Yadav To: perex@perex.cz, tiwai@suse.com, dhowells@redhat.com Date: Thu, 17 Aug 2017 15:36:22 +0530 Message-Id: <1502964390-6927-8-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502964390-6927-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502964390-6927-1-git-send-email-arvind.yadav.cs@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 07/15] ALSA: cmi8330: constify pnp_card_device_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 pnp_card_device_id are not supposed to change at runtime. All functions working with pnp_card_device_id provided by work with const pnp_card_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/isa/cmi8330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/isa/cmi8330.c b/sound/isa/cmi8330.c index f64b29a..6b8c469 100644 --- a/sound/isa/cmi8330.c +++ b/sound/isa/cmi8330.c @@ -182,7 +182,7 @@ struct snd_cmi8330 { #ifdef CONFIG_PNP -static struct pnp_card_device_id snd_cmi8330_pnpids[] = { +static const struct pnp_card_device_id snd_cmi8330_pnpids[] = { { .id = "CMI0001", .devs = { { "@X@0001" }, { "@@@0001" }, { "@H@0001" }, { "A@@0001" } } }, { .id = "CMI0001", .devs = { { "@@@0001" }, { "@X@0001" }, { "@H@0001" } } }, { .id = "" }