From patchwork Sun Jul 23 17:23: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: 9858501 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 5AF1860380 for ; Sun, 23 Jul 2017 17:25:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E0A128408 for ; Sun, 23 Jul 2017 17:25:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30AD228517; Sun, 23 Jul 2017 17:25:36 +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 7911028408 for ; Sun, 23 Jul 2017 17:25:35 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CA5C9266C21; Sun, 23 Jul 2017 19:24:50 +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 3CCBD266C40; Sun, 23 Jul 2017 19:24:47 +0200 (CEST) Received: from mail-pf0-f196.google.com (mail-pf0-f196.google.com [209.85.192.196]) by alsa0.perex.cz (Postfix) with ESMTP id CA6C0266B7E for ; Sun, 23 Jul 2017 19:24:41 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id o88so8721208pfk.1 for ; Sun, 23 Jul 2017 10:24:41 -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=42mCA9wzH468vc/K0kiY6zt44c5ejQvKbqzf9NzpwAI=; b=C7B3iDP98/NcvrRqVsiCHj7JNqFAZ5KtvPiGtRY+QJ9gc7/50QCZycsHr16bKUs68Q d2YRA0/ZJr6GaC32oK4gwbBY1eicPcCVJ+oaEy/zUc7s6b4186f/MR3b0onQPIFjEhu0 NrXxxIOVXlKlP/w640KjdmJRjGFEgjSTNn96KJV+I8SszblT5YCp9Qj9Zolg+zPzwj+Z 0djyvnbaiiFy7QvfZ1/Ae+QTcISAkI6y2pUeLuuPPWzyCyD7DiVNK4sdJFY4wqwpeh93 x9QIRQ+OHJ0HuS3HqOnxRF67SwBvustTyGiLrHolZKbMTik6IgRrYRP4OnNdSodzopQ7 GE5g== 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=42mCA9wzH468vc/K0kiY6zt44c5ejQvKbqzf9NzpwAI=; b=GF18N6zxP1y+INbmQqhfwajFY1HnIhz42+aLvpTY21zLUxU2G4XRD6kYSDJIPtJi5b BKQGfD62Af2hJ8UPFwDVGlwq5WS8g47nKyR/KIPQK/3g9XpbiGPOnDciJogb2QHyc045 m+Fp4EAhsFAKuXhCKFg/tV+uf1WZF9GOnhvs7Y60Shj9+CaoFCo8dq0qMuNfBqA9qWPt EfZgVAx9Wx8XS1Dbtlg3fBCgLzeCa936OP9Q+GdMYmiDUaYEMpCg+GJIEDr9/OPv7rYF 8e++++rtqmK+Cl+PI+i/U7959n0auzdk017RYZd+IjZLEIK7xRnRUnNFuITuau8Oi53k Oi2A== X-Gm-Message-State: AIVw111RNrquhMJJHWJv0siZ8Ye3vtlQD6pASxYgaAIziQ46OAUSvA38 sSplXQiIpW7o9w== X-Received: by 10.84.194.195 with SMTP id h61mr7080232pld.140.1500830680976; Sun, 23 Jul 2017 10:24:40 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id g79sm18979754pfg.121.2017.07.23.10.24.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 23 Jul 2017 10:24:40 -0700 (PDT) From: Arvind Yadav To: bardliao@realtek.com, oder_chiou@realtek.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com Date: Sun, 23 Jul 2017 22:53:26 +0530 Message-Id: <1500830607-17268-4-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500830607-17268-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1500830607-17268-1-git-send-email-arvind.yadav.cs@gmail.com> Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 3/4] ASoC: rt5659: constify acpi_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 acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- sound/soc/codecs/rt5659.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5659.c b/sound/soc/codecs/rt5659.c index 1b70608..0a99fad 100644 --- a/sound/soc/codecs/rt5659.c +++ b/sound/soc/codecs/rt5659.c @@ -4222,7 +4222,7 @@ MODULE_DEVICE_TABLE(of, rt5659_of_match); #endif #ifdef CONFIG_ACPI -static struct acpi_device_id rt5659_acpi_match[] = { +static const struct acpi_device_id rt5659_acpi_match[] = { { "10EC5658", 0, }, { "10EC5659", 0, }, { },