From patchwork Tue Aug 2 05:48:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9255187 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 32E3160754 for ; Tue, 2 Aug 2016 05:50:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 24068284B4 for ; Tue, 2 Aug 2016 05:50:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 18975284C7; Tue, 2 Aug 2016 05:50:07 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,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 7C8BF284B4 for ; Tue, 2 Aug 2016 05:50:05 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1112E266552; Tue, 2 Aug 2016 07:50:04 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 54EDA265D6E; Tue, 2 Aug 2016 07:49:20 +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 1FD0D2660BD; Tue, 2 Aug 2016 07:49:19 +0200 (CEST) Received: from mail-pa0-f65.google.com (mail-pa0-f65.google.com [209.85.220.65]) by alsa0.perex.cz (Postfix) with ESMTP id 68BA2265938 for ; Tue, 2 Aug 2016 07:49:13 +0200 (CEST) Received: by mail-pa0-f65.google.com with SMTP id hh10so11282721pac.1 for ; Mon, 01 Aug 2016 22:49:13 -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=PPZre77LrZ0QA1PRD34pbIsOLffby/O33vEVoN9tpUA=; b=xbv3aF4F2YdV2C++rW4FXC4uFbjMj9Eybz+RnDf65s1heuNvqnREFe3cwCYl5SlDlQ edGjgrYWB/OI/gv9sj6DDat8pGYpBHyGBhxTgb+Ouh9UFYoFBxeZEDXcgTMBhuvXeS6y Jitg27BKTqdG4W50zU1YgkqwG+mybyi6zgQGWimb4Fft+E+zkIg3snc122wcokatMsj3 Yorci1uPMpy+0jqsxsAdH+Bi36M9FG2MHOu6yrxaVc1yHqDh8yFnvR1ylRLH3erdaCaJ aGvIEef9kIi8XREewqktdhisUGihEDwHBtCvQcEQMH1MkFftGP8+TB4PcBbEE0TOAvCm vluw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PPZre77LrZ0QA1PRD34pbIsOLffby/O33vEVoN9tpUA=; b=iZzVrNglo7oL3Pm96Yokps/F4R+BK1YpllOme/qeJYufw8jBOK2RTms7XNzbg1wdUP 8rrFWatm6JN27gmwZwSeTezrcWVS91KFVvOL6eXKubJTrVpWqpRysK+0zSjO31gxzH5y crTRG/MLu4jMx0h8NoAeDsJxCF5p6uaiBRpeq2HUaFd7Kl9qK8d+catnsK6tX87EgKe/ 2i0NpfaBIgSULVTQSn64LiXUATWUSWC1KQ66cj7J41RL3xYMZvbsCEEvvI0wLRM2v425 KO3iIWACDdlBhB2D5dYMukWRLDCV2Qfd3EUYKSf07RqdVu3Mc9+Iqwenhd/HXXnA7Vmq 65Yg== X-Gm-Message-State: AEkoout56S4H810AB/ZK8uQT9Gv+gIWcl2nSb7bh7YeSQ5o98HsBjzmI4r5QC5m2vskkaw== X-Received: by 10.66.222.202 with SMTP id qo10mr102599436pac.76.1470116952643; Mon, 01 Aug 2016 22:49:12 -0700 (PDT) Received: from localhost.localdomain (118-171-143-154.dynamic.hinet.net. [118.171.143.154]) by smtp.gmail.com with ESMTPSA id c82sm1317731pfb.72.2016.08.01.22.49.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Aug 2016 22:49:11 -0700 (PDT) From: Axel Lin To: Mark Brown Date: Tue, 2 Aug 2016 13:48:31 +0800 Message-Id: <1470116911-7592-2-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470116911-7592-1-git-send-email-axel.lin@ingics.com> References: <1470116911-7592-1-git-send-email-axel.lin@ingics.com> Cc: Brian Austin , Axel Lin , alsa-devel@alsa-project.org, Paul Handrigan , Liam Girdwood , Nicolin Chen Subject: [alsa-devel] [PATCH 2/2] ASoC: cs53l30: Constify cs53l30_mclk_coeffs and cs53l30_mclkx_coeffs tables 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 Acked-by: Paul Handrigan --- sound/soc/codecs/cs53l30.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c index 227c556..b69c483 100644 --- a/sound/soc/codecs/cs53l30.c +++ b/sound/soc/codecs/cs53l30.c @@ -466,7 +466,7 @@ struct cs53l30_mclk_div { u8 mclk_int_scale; }; -static struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = { +static const struct cs53l30_mclk_div cs53l30_mclk_coeffs[] = { /* NOTE: Enable MCLK_INT_SCALE to save power. */ /* MCLK, Sample Rate, asp_rate, internal_fs_ratio, mclk_int_scale */ @@ -511,7 +511,7 @@ struct cs53l30_mclkx_div { u8 mclkdiv; }; -static struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = { +static const struct cs53l30_mclkx_div cs53l30_mclkx_coeffs[] = { {5644800, 1, CS53L30_MCLK_DIV_BY_1}, {6000000, 1, CS53L30_MCLK_DIV_BY_1}, {6144000, 1, CS53L30_MCLK_DIV_BY_1},