From patchwork Thu Aug 17 10:06:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9905531 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 0FE4C60244 for ; Thu, 17 Aug 2017 10:09:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7F7F8287F9 for ; Thu, 17 Aug 2017 10:09:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74583288CD; Thu, 17 Aug 2017 10:09:27 +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 DFC86288A7 for ; Thu, 17 Aug 2017 10:09:26 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 68A93267681; Thu, 17 Aug 2017 12:07:27 +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 85A7026767F; Thu, 17 Aug 2017 12:07:26 +0200 (CEST) Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by alsa0.perex.cz (Postfix) with ESMTP id 8130926767C for ; Thu, 17 Aug 2017 12:07:21 +0200 (CEST) Received: by mail-pg0-f68.google.com with SMTP id 83so9124745pgb.4 for ; Thu, 17 Aug 2017 03:07:21 -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=+erhR40RvaUgGSHR5t5+b4DmVufllButNei7cG+f/2M=; b=KRWbj+apb0Goiuk7QgMyUheoTeyVE+wo7dNRthEbitoGuH8BwYMBwhbP+uf/dczS7f DtvrRxagX77ECD9nqNaWpMzjgDV8pbgZbmwVyVBcJtGsX6SplaQM1yPV787CqXuAkiQC OViYI97C9SXwVmXHKQ+mpoTl/XjWaFx6LmChpGHKMMIwAcNtgH4j4D+sVDh4a0eshz8o bHpVWlWkDcFGUE/g3v/0f8TI0JJ6+kRHtU6TRIlxY6XT7nLhPIHfrTRWwI17DLZKHFIB KbB9Q0SdyHSHpZQbuT9uYiidtTW8Lnnk3Qpmg8au65CU0o3ucrEQPOPWQKs2GyvQNNvn YKKQ== 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=+erhR40RvaUgGSHR5t5+b4DmVufllButNei7cG+f/2M=; b=UctEBhZuB4E99Gt7gEjRnAr8FSNXQUiqL/dwYf0O96qJxI9UgvHIcuoQmHHY4V90Tn NQgCCeoKndA07Nli38hF1tdYTUCYEDLIugHATPkbwbHT91CLoVGbHTd0pwik3vJ2GFKu EKEvSk6+vqxql+kFI6ycMpGccuVLm74cDvyBoFmzO7DIrK6/TBRqX7RDsttLvwAcFFlx IgAKdd+X7D4iNwEfMTyMGiEu0My0063H3h1b/qi/OcpnzWDFRq9sMolk+itQ3fb/lBML ZuT/jHbDOtijA5qj63rh5afpdqfapMCBy5wQFK5ycq5LUmunevsU1eaKqLySOyJXXocq Rjrw== X-Gm-Message-State: AHYfb5iQibdkEj+68NxY0IOBi3gG800/PRYeGsfjvaRqtpJoDirXC8Gi E36RiW7liqUuhw== X-Received: by 10.84.231.204 with SMTP id g12mr5370971pln.131.1502964440482; Thu, 17 Aug 2017 03:07:20 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.76]) by smtp.gmail.com with ESMTPSA id p81sm1459632pfl.23.2017.08.17.03.07.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Aug 2017 03:07:19 -0700 (PDT) From: Arvind Yadav To: perex@perex.cz, tiwai@suse.com, dhowells@redhat.com Date: Thu, 17 Aug 2017 15:36:24 +0530 Message-Id: <1502964390-6927-10-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 09/15] ALSA: es1688: 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/es1688/es1688.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/isa/es1688/es1688.c b/sound/isa/es1688/es1688.c index 36320e7..a826c13 100644 --- a/sound/isa/es1688/es1688.c +++ b/sound/isa/es1688/es1688.c @@ -321,7 +321,7 @@ static int snd_es968_pnp_resume(struct pnp_card_link *pcard) } #endif -static struct pnp_card_device_id snd_es968_pnpids[] = { +static const struct pnp_card_device_id snd_es968_pnpids[] = { { .id = "ESS0968", .devs = { { "@@@0968" }, } }, { .id = "ESS0968", .devs = { { "ESS0968" }, } }, { .id = "", } /* end */