From patchwork Fri Jul 28 13:08:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9868735 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 D82B46035E for ; Fri, 28 Jul 2017 13:09:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8CE8288CB for ; Fri, 28 Jul 2017 13:09:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BDE80288D0; Fri, 28 Jul 2017 13:09:39 +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 12C2C288CB for ; Fri, 28 Jul 2017 13:09:39 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D970A2676F6; Fri, 28 Jul 2017 15:09:19 +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 3BC6C2676E0; Fri, 28 Jul 2017 15:09:19 +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 4A9C52676EB for ; Fri, 28 Jul 2017 15:09:15 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id q85so20681997pfq.2 for ; Fri, 28 Jul 2017 06:09:15 -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=WyT2Co5bSxmTRyIG1uru3z4JGV8Shs3LdWk6//0r//4=; b=Tobxye9uwq411uU6g9f5ML1Km7IXJz+LvezbmMAuM1JSVVqXBXzJByo8qdIAkcq0CT x6Fn1QGtE6ZB64iALoGlGUj1KfYxOMYbFvc5l80l574gVpDT0Ixm5pZ7I23tGrIATfwz /fkLAhsbtv0bSOo7Lwahop6m7bFoHWFhmVsdpiYT3RrYTSPgCeXHo1YhWoIsEOxLNTWW jWO3JSRCK37BX6ktjPjflTZFesN+/+8b1QxqFolEIwT5GpLogMeY7v023OBIoIwJXno1 sZS5aM/jmb4pddAyZXx8ebdZERmCHJLS44tkBedBOMX23rX6j61gYb0WL/CBTHXuJ59E wQbw== 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=WyT2Co5bSxmTRyIG1uru3z4JGV8Shs3LdWk6//0r//4=; b=lfH8v98/9OvWGAthcrhg4iG51d02uijtK9pCCsCs8nuRd8haMwXk8Jnhz4Mo91qO1d uTMqErUxkkH2rzYheGg8Js8OB0tentkL/MneRBsbPNKWDTmn4qVwv7FCx1y22tDqBXFz XKgywXMLrJki/nNzrPissjcwSjcTg1Uvfb0UKkqyzxOiMYP+g/DUkwBzDcPdkcdu4bxx qs7Uvnb9GNdJSsD0mko3f+FK00hIdqF/CQQ6Zqn4Wp42WsCSd0biJ1aHTVfAP/U3CaNw nmN43oRDUSOb+uwAfITlwb0CJa66b/PxLMbIRqRQPsv9CvCuzXf3rjKgv2VyHOpCskW4 xFqg== X-Gm-Message-State: AIVw112ZbALRAmvA4cJdeLX2dagoSf2ao9r26JRnExcdei9X521katVn PCYTJefD9/V2qg== X-Received: by 10.84.193.101 with SMTP id e92mr7799542pld.209.1501247354847; Fri, 28 Jul 2017 06:09:14 -0700 (PDT) Received: from gmail.com ([117.196.112.133]) by smtp.gmail.com with ESMTPSA id h3sm40203800pfj.72.2017.07.28.06.09.11 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 28 Jul 2017 06:09:14 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 28 Jul 2017 18:39:08 +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:27 +0530 Message-Id: <1501247311-19803-3-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 2/5] ALSA: isa: 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/isa/ad1816a/ad1816a_lib.c | 2 +- sound/isa/gus/gus_timer.c | 4 ++-- sound/isa/wss/wss_lib.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/isa/ad1816a/ad1816a_lib.c b/sound/isa/ad1816a/ad1816a_lib.c index 5c815f5..6130fc3 100644 --- a/sound/isa/ad1816a/ad1816a_lib.c +++ b/sound/isa/ad1816a/ad1816a_lib.c @@ -431,7 +431,7 @@ static int snd_ad1816a_timer_stop(struct snd_timer *timer) return 0; } -static struct snd_timer_hardware snd_ad1816a_timer_table = { +static const struct snd_timer_hardware snd_ad1816a_timer_table = { .flags = SNDRV_TIMER_HW_AUTO, .resolution = 10000, .ticks = 65535, diff --git a/sound/isa/gus/gus_timer.c b/sound/isa/gus/gus_timer.c index c537271..8fd0327 100644 --- a/sound/isa/gus/gus_timer.c +++ b/sound/isa/gus/gus_timer.c @@ -123,7 +123,7 @@ static void snd_gf1_interrupt_timer2(struct snd_gus_card * gus) */ -static struct snd_timer_hardware snd_gf1_timer1 = +static const struct snd_timer_hardware snd_gf1_timer1 = { .flags = SNDRV_TIMER_HW_STOP, .resolution = 80000, @@ -132,7 +132,7 @@ static void snd_gf1_interrupt_timer2(struct snd_gus_card * gus) .stop = snd_gf1_timer1_stop, }; -static struct snd_timer_hardware snd_gf1_timer2 = +static const struct snd_timer_hardware snd_gf1_timer2 = { .flags = SNDRV_TIMER_HW_STOP, .resolution = 320000, diff --git a/sound/isa/wss/wss_lib.c b/sound/isa/wss/wss_lib.c index 9f4e2e3..4016677 100644 --- a/sound/isa/wss/wss_lib.c +++ b/sound/isa/wss/wss_lib.c @@ -975,7 +975,7 @@ static int snd_wss_timer_close(struct snd_timer *timer) return 0; } -static struct snd_timer_hardware snd_wss_timer_table = +static const struct snd_timer_hardware snd_wss_timer_table = { .flags = SNDRV_TIMER_HW_AUTO, .resolution = 9945,