From patchwork Sat Aug 12 15:31:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897293 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 ED88F60351 for ; Sat, 12 Aug 2017 15:32:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF82928B5C for ; Sat, 12 Aug 2017 15:32:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D46C528B65; Sat, 12 Aug 2017 15:32:48 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 926AB28B5C for ; Sat, 12 Aug 2017 15:32:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752316AbdHLPck (ORCPT ); Sat, 12 Aug 2017 11:32:40 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:32989 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbdHLPci (ORCPT ); Sat, 12 Aug 2017 11:32:38 -0400 Received: by mail-pg0-f67.google.com with SMTP id u185so5371956pgb.0; Sat, 12 Aug 2017 08:32:38 -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=m+yOqJWzL5/ahZE7UMu2dAQRa0tW4r5cYYE/kDCZy5U=; b=vdIEMKSimxg61azrfdFLJ93Pm5Fep5+3cqB6Y2Udk07WxazH5l1TALkebf8iUkMIPA 5wL+ft1+5FTKMI2OE7QWOtfwFrXeYLa0bcVel+rLweaJSKAp0X7utsiiwFkpFPyJmzIT 4QHTsup/BxHXMjCd14dYlmeZO8YaepKV7CfT7uo0AhtO5T+HUirhouGLYjLCMdvec67o k92PsVK4m8LYiCHU6JLQrNRe1hXmaO779xhDenygbaCLq/gWDsCUYZzo2cfQvXUnw4oo NtXZtLU2coI033O3Txlj8Di7+6mPjcYRB089/kDqwskmFEb6NmP4WbNErUmXmoUWf6bx kSeg== 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=m+yOqJWzL5/ahZE7UMu2dAQRa0tW4r5cYYE/kDCZy5U=; b=jv9S8U2O4sDJsxNQe0xa9gpkRyIVBh4T+v5htxLLx89F/KJYGVFeB05rDZ+s/apbSB CpRZRafRwNoeI9Zk7evqXQjlI19HH3Pt2ccGk3aUhnpVW0P1r/X8W9BM7DdeWGKetdjM zI+TWEjG3P0n+NP3CqeCIwDVMcK3JAAXvqfC0vf8JfmFD1+2OD3ro3PeB+AoiValCqI9 rAAs0+0ebOD7QJ+ouK7Hd1y+Ci9WIMdl8kLAOtStkTyM6rFYbc+Fcn7XmrpzsROw5+j7 KlVsITBGC7rZ2dVnbit+HBGBRNZYmvEts9ZTVz6i80KtZqweIYmb8w85BrqHj7ZRt0Y8 RrdQ== X-Gm-Message-State: AHYfb5jH/e1AMoK15e+ZY6Bp4SIigYj7WULfVmSPHx9qm5uQoYJgk4FV PE7CoxVXuMksbw== X-Received: by 10.98.58.210 with SMTP id v79mr19907851pfj.162.1502551957736; Sat, 12 Aug 2017 08:32:37 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id b77sm7512898pfe.54.2017.08.12.08.32.33 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:32:37 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:02:30 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, T-Bone@parisc-linux.org, perex@perex.cz, tiwai@suse.com, clemens@ladisch.de, jayakumar.alsa@gmail.com, linux-parisc@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 07/16] ALSA: lola: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:19 +0530 Message-Id: <1502551888-30325-8-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502551888-30325-1-git-send-email-bhumirks@gmail.com> References: <1502551888-30325-1-git-send-email-bhumirks@gmail.com> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make this const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/lola/lola_pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/lola/lola_pcm.c b/sound/pci/lola/lola_pcm.c index 1268ba3..310b26a 100644 --- a/sound/pci/lola/lola_pcm.c +++ b/sound/pci/lola/lola_pcm.c @@ -197,7 +197,7 @@ static void lola_stream_reset(struct lola *chip, struct lola_stream *str) } } -static struct snd_pcm_hardware lola_pcm_hw = { +static const struct snd_pcm_hardware lola_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER |