From patchwork Wed Aug 2 09:55:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9876495 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 990A460390 for ; Wed, 2 Aug 2017 09:55:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77DBA287AE for ; Wed, 2 Aug 2017 09:55:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CAAC2879B; Wed, 2 Aug 2017 09:55:56 +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_SIGNED, 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 9C2E8287A5 for ; Wed, 2 Aug 2017 09:55:55 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D1B35267282; Wed, 2 Aug 2017 11:55:47 +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 15C7126728A; Wed, 2 Aug 2017 11:55:44 +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 E89F7267281 for ; Wed, 2 Aug 2017 11:55:39 +0200 (CEST) Received: by mail-pg0-f68.google.com with SMTP id 83so5940565pgb.4 for ; Wed, 02 Aug 2017 02:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z1FGTevnMrFQkUQA6LvpU0ThN7+cNU0N3NkpU+h3nKI=; b=XkSBXW9uTMZn1iyYzWoChy8NtmpYtE5V/m0aMMSkrOoCU88VTmURT5byZmniTdStud r1kDzn6UOKu/iLTCR6xdQTKp6ec/mL7IiI72dWt5GZMazfyaVbK5S5uVamAgH9zlR1EQ NjTdb7Rgp12TmnLM/7lIRZvCd6g3vzh4WxqtIDGE2kydCX2MmqvrJdJSm5SNmhIyBwpE JRtboRrSLPoO9a9R0Y8IUXTCLxGkh8DseWT102A5JUMA5/xGgACyrqx00aV/x/HR2rN2 80hipwJI8TVmapfPVOVLwJqcXPk631IbHSwfb8TWeM4ORPFxBz+q96hBG2ehIPmHj44j XvLQ== 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=z1FGTevnMrFQkUQA6LvpU0ThN7+cNU0N3NkpU+h3nKI=; b=kGJY4BrvKHQAQJFzBNwi4FPJVT/vKb+bWJzlf3wEOnYTI8+p1jTrxEho+cISrcoNIQ k1OQJcoZIG3fYGeiqLTuzEVkBPHt55r9Fy1XY1ZBUjGNQOxkX/bAJfaKRPAgxml0u50n T/rUdihlXvNDC/aSQcwWZGpwhTUvGTQtbG32mpx8oD88uk43CI2FRqxroAuf7g7/Vu20 5Kot75u9bkWGip/EIi4deGZkFyy4sY+qKKMSftMojXYRSTLEkDC9LDC01qWUCcsLg915 g73RiLjUJizCxE4m0ESQf1ksZuITk57KgUJRyMz37lge/Q8muL7hRGx43vCvUYuM+P2y 3e6w== X-Gm-Message-State: AIVw110qFQ5U833oJKQoQR9MiIHKBUn/e6Kr40xH5WiBtaNCqINDItF/ XP5kBIcII9rDEyGn X-Received: by 10.98.37.196 with SMTP id l187mr21898927pfl.202.1501667737773; Wed, 02 Aug 2017 02:55:37 -0700 (PDT) Received: from localhost.localdomain (118-171-142-123.dynamic-ip.hinet.net. [118.171.142.123]) by smtp.gmail.com with ESMTPSA id s18sm45588356pfg.166.2017.08.02.02.55.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Aug 2017 02:55:37 -0700 (PDT) From: Axel Lin To: Mark Brown Date: Wed, 2 Aug 2017 17:55:14 +0800 Message-Id: <20170802095514.29138-2-axel.lin@ingics.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170802095514.29138-1-axel.lin@ingics.com> References: <20170802095514.29138-1-axel.lin@ingics.com> Cc: patches@opensource.cirrus.com, Charles Keepax , Axel Lin , Liam Girdwood , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH 2/2] ASoC: wm8523: Constfiy lrclk_ratios and bclk_ratios 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 Signed-off-by: Axel Lin --- sound/soc/codecs/wm8523.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c index b1e4ce7..c7c33e9 100644 --- a/sound/soc/codecs/wm8523.c +++ b/sound/soc/codecs/wm8523.c @@ -100,7 +100,7 @@ static const struct snd_soc_dapm_route wm8523_dapm_routes[] = { { "LINEVOUTR", NULL, "DAC" }, }; -static struct { +static const struct { int value; int ratio; } lrclk_ratios[WM8523_NUM_RATES] = { @@ -113,7 +113,7 @@ static struct { { 7, 1152 }, }; -static struct { +static const struct { int value; int ratio; } bclk_ratios[] = {