From patchwork Fri Jul 28 13:08:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9868741 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 C35816035E for ; Fri, 28 Jul 2017 13:09:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFE30288CF for ; Fri, 28 Jul 2017 13:09:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0E77288CB; Fri, 28 Jul 2017 13:09:58 +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 E9EA8288CB for ; Fri, 28 Jul 2017 13:09:57 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 245A326770F; Fri, 28 Jul 2017 15:09:36 +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 59E9C267736; Fri, 28 Jul 2017 15:09:35 +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 ABF29267717 for ; Fri, 28 Jul 2017 15:09:22 +0200 (CEST) Received: by mail-pf0-f196.google.com with SMTP id q85so20682276pfq.2 for ; Fri, 28 Jul 2017 06:09:22 -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=dG5QGe/1/EVEgPmeV6jjYdUnBIjfwPaklwTSEAsabfk=; b=PDQNcG2hWRhWitE02+OZJAC9QB1Ckso1lcj6i9ecC6N37y6jOT0w40V6PLSHQXHMWY WE9vVrvk2MrGlZ2qbRSU6zeSqSuqIEdmMauLf+FtlKWgbwwAv5kswpZwZDfpKYVuZZ1i wHZcMnPgzI3BvcZv79pu6VUkF+o0/rJRYVzJPzlHU/XdcMWGu9xpVLEKhse3S+iZSmgx o+n6cKc2FajcZl+8DjENxdBD7Oj3Kw1RhbDpz9ERHYJA220QwqVer3hrd97Q8FOY/80F ie9JzM4A7Y7cJUbR461xy0Wxz9JshWgnW7YMDG51zWzNKadcEcKMlYfwvNxiFDlEcsc/ 8rxg== 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=dG5QGe/1/EVEgPmeV6jjYdUnBIjfwPaklwTSEAsabfk=; b=RRjdskZQ1k2wyEpIqzgO2DVb2RKYrzNkKg9UqWhW5FtRAyap1s5zol2kU6o+hwKxRI P496nVrcoKmqdsOQzW8uHpUiYcYqtEeeaKYFx/x2wV7tZ/PswuenZQEk54VONByv8FKR CyV54+BvW6NEaU7ZM1CzSCs24JllvHAoAdtkorAACQKVmnV3raUOn0Kc7ijcmBsltOul mA/IdmB8AVMGZcFd9TQimehDjGuoF+sGeWDNDwz6e2F8HbnPS5kCV5iPAuUsCvNbd20X 6O9eJRh/1HjJnp082BvmeZF+bXeSCkz4amudxeKJC4+MO9d4PeVpCWTLXpXib1k4I0qZ w8dg== X-Gm-Message-State: AIVw112jtImfxmUX0jSkAFsKZTJ9Ro+lGa1ueN6lul8R4EuN/uzAgdah ycCqS/0Zx3LYvA== X-Received: by 10.98.12.145 with SMTP id 17mr7374274pfm.153.1501247361576; Fri, 28 Jul 2017 06:09:21 -0700 (PDT) Received: from gmail.com ([117.196.112.133]) by smtp.gmail.com with ESMTPSA id h62sm42363072pfc.97.2017.07.28.06.09.17 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 28 Jul 2017 06:09:21 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 28 Jul 2017 18:39:15 +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:28 +0530 Message-Id: <1501247311-19803-4-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 3/5] ALSA: pci: 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/pci/emu10k1/timer.c | 2 +- sound/pci/ymfpci/ymfpci_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/emu10k1/timer.c b/sound/pci/emu10k1/timer.c index b69a7f8..cf43908 100644 --- a/sound/pci/emu10k1/timer.c +++ b/sound/pci/emu10k1/timer.c @@ -66,7 +66,7 @@ static int snd_emu10k1_timer_precise_resolution(struct snd_timer *timer, return 0; } -static struct snd_timer_hardware snd_emu10k1_timer_hw = { +static const struct snd_timer_hardware snd_emu10k1_timer_hw = { .flags = SNDRV_TIMER_HW_AUTO, .resolution = 20833, /* 1 sample @ 48KHZ = 20.833...us */ .ticks = 1024, diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c index 1114166..39b1d11 100644 --- a/sound/pci/ymfpci/ymfpci_main.c +++ b/sound/pci/ymfpci/ymfpci_main.c @@ -1938,7 +1938,7 @@ static int snd_ymfpci_timer_precise_resolution(struct snd_timer *timer, return 0; } -static struct snd_timer_hardware snd_ymfpci_timer_hw = { +static const struct snd_timer_hardware snd_ymfpci_timer_hw = { .flags = SNDRV_TIMER_HW_AUTO, .resolution = 10417, /* 1 / 96 kHz = 10.41666...us */ .ticks = 0x10000,