From patchwork Fri Jul 28 13:08:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9868747 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 8F0C66035E for ; Fri, 28 Jul 2017 13:10:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7EE34288DA for ; Fri, 28 Jul 2017 13:10:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6A4F7288D0; Fri, 28 Jul 2017 13:10:44 +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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 24479288DA for ; Fri, 28 Jul 2017 13:10:42 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 501CC267756; Fri, 28 Jul 2017 15:10:16 +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 4D614267778; Fri, 28 Jul 2017 15:10:14 +0200 (CEST) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by alsa0.perex.cz (Postfix) with ESMTP id 57A2D267756 for ; Fri, 28 Jul 2017 15:09:43 +0200 (CEST) Received: by mail-pf0-f195.google.com with SMTP id 72so232427pfl.4 for ; Fri, 28 Jul 2017 06:09:42 -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=N9VHfSqFOPL2R+doPOQvOvkxqm7yWhKuauLbpo1As6w=; b=jY0VudEwA/psFvBYQLPs1NhlGQlxdfp0noiUVXLf5JM2Jw3MVNsN85E4/tBB2N9GPi AaggHMXYdDzHsNaTuuUlIMCav3E+0L1Wt6OPs8kRV3nRH8IfCAabJX3B4yPtfvdzcAVE JWhxv5Q5hmZ320EQ9toGQ826E3wTMydB7/LKVr2LqQ7ICe2bVqizn5jbhDHJ7kRp1rjB iYO6jXWGvxhiOwYSneCAITfkzm6Q9QyCR3EL8Sfyf38ZbDKdhYZzgZRd6TpWVFiuZfFH nd2vpAv0cinOQQnLHzp9ChpXOm0wv/LsIZX2lazu2JL/JC5uoxFMDNjhUqhW20sECmeg tCPA== 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=N9VHfSqFOPL2R+doPOQvOvkxqm7yWhKuauLbpo1As6w=; b=Kly5a7nIfmmPBH1n0d3SLvFgIChVaDmUtJUhMblESzaYwcMqiwcKmvcmzY7qLux4m6 PoOB3lExZZgbqWCgO5LAnvdtZzHMaK0DmEVuvsMAC5kFB4m8Gk9/UtS1ASxiOJL0mxBL Ko+dTtVitxsGZMWBktBH+StXWaACcLoTYWNmmTAeBCKuBrSES/5UjH867lYLnrxu4Yxn YjC7AV1/+mWUSnSX1iPh2Kt+Q+CDZS3AAm9TKGhOiXtXmBz2OqRpJWGOjDP0ujFaOuDM r4ypW43184zI9UXxtwy2C53F4/0fx23/QtOjDybXFUkJz8c+UEpTXniSFiG6qWkt4xk8 Nj9g== X-Gm-Message-State: AIVw1109orEXNztxlDOeVkKVdU06gtZBcisF+oFemN257xIS4lpgSud9 SKKX0lMIxBq9iQ== X-Received: by 10.99.95.79 with SMTP id t76mr7210715pgb.141.1501247382048; Fri, 28 Jul 2017 06:09:42 -0700 (PDT) Received: from gmail.com ([117.196.112.133]) by smtp.gmail.com with ESMTPSA id r86sm7561972pfi.138.2017.07.28.06.09.37 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 28 Jul 2017 06:09:41 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 28 Jul 2017 18:39:35 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Fri, 28 Jul 2017 18:38:31 +0530 Message-Id: <1501247311-19803-7-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501247311-19803-1-git-send-email-bhumirks@gmail.com> References: <1501247311-19803-1-git-send-email-bhumirks@gmail.com> Cc: Bhumika Goyal Subject: [alsa-devel] [PATCH 5/5] ALSA: opl3: constify snd_timer_hardware structures 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 Declare snd_timer_hardware structures as const as their only usage is during a copy operation. As they are not modified anywhere, they can be made const. Signed-off-by: Bhumika Goyal --- sound/drivers/opl3/opl3_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/drivers/opl3/opl3_lib.c b/sound/drivers/opl3/opl3_lib.c index d5e5b46..5259904 100644 --- a/sound/drivers/opl3/opl3_lib.c +++ b/sound/drivers/opl3/opl3_lib.c @@ -229,7 +229,7 @@ static int snd_opl3_timer2_stop(struct snd_timer * timer) */ -static struct snd_timer_hardware snd_opl3_timer1 = +static const struct snd_timer_hardware snd_opl3_timer1 = { .flags = SNDRV_TIMER_HW_STOP, .resolution = 80000, @@ -238,7 +238,7 @@ static int snd_opl3_timer2_stop(struct snd_timer * timer) .stop = snd_opl3_timer1_stop, }; -static struct snd_timer_hardware snd_opl3_timer2 = +static const struct snd_timer_hardware snd_opl3_timer2 = { .flags = SNDRV_TIMER_HW_STOP, .resolution = 320000,