From patchwork Thu Aug 17 09:15:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905389 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 D7FA960244 for ; Thu, 17 Aug 2017 09:18:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D539528ACD for ; Thu, 17 Aug 2017 09:18:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9B5628AD4; Thu, 17 Aug 2017 09:18:32 +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=-4.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,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 7820028ACD for ; Thu, 17 Aug 2017 09:18:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751843AbdHQJSF (ORCPT ); Thu, 17 Aug 2017 05:18:05 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36210 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751149AbdHQJSE (ORCPT ); Thu, 17 Aug 2017 05:18:04 -0400 Received: by mail-pg0-f66.google.com with SMTP id y129so8930521pgy.3; Thu, 17 Aug 2017 02:18:03 -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=0N4rzzsCbuI04/Vni1HeZnXU0wZds0hHzKYpEf+tEOk=; b=p87x8cTSjSNIu01XDCWG5lKx3S/GZdCx9PiHKCcNbKXVAC074LWX1wBSzUTmUIn2sT rpWTp1rWkllQcMA7i6HzVP8q0s94ETJNWgm7w5xf6cZVfSxiC8wuJiagD9nm2vQLLtwa JAcqHjyinbIW9w6sCnLHcUNcomH3L+JXxpEkr+SAFl+JQ7hBVOKTxR+Mhh1mtquBtGYJ aCZcgwEmgY8psHGIMVatmhRd0fBlvZpOzxwNTUiVxnwnHM70qa1DjBB204T8cF0UnvfW 1cVnf8J3crS7L5XlplofaBN8EXAttTBZNNauZyhAoeclnURtb9/+8Ms1CNjdZ0m36IdX c43A== 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=0N4rzzsCbuI04/Vni1HeZnXU0wZds0hHzKYpEf+tEOk=; b=ZwE3KrX4brfw7yXHhqU3SueEqJiUoaTn3FD/1Qybox8L+J/26dU06vl+og5ckdUm4H Uchs8EhBR+Qqor1tvLF/jQh4oBW/JV8ubf5Uo80Ypkf7b0Se4bfa+44a0av/AorFzODy vdboaa6Pohj42EahWGlJ0sCujM8OgXM7UWSI+ovnZCRxO/bs2eBMqUylQ4XJ9G+US8bF ldiZwIh8q7CYnBTtBeraHsbyEBNlp6SYYtIr+xDaXqzdiQQr4dQ0hbBe+nPvmYuR70bd jJXCvDInrDUMB2AVq/GbXgHUbb0/2o7SM0boAQHhHo7At5RyrTm1w9o6Z3GkjopBt796 O0yA== X-Gm-Message-State: AHYfb5iQ/P3d+MVJEcwgtEjsTPYFORtsHbhduuLYsjd8zM1F3PXMAgfu uaANNJdX6mZtgQ== X-Received: by 10.84.253.16 with SMTP id z16mr4906937pll.81.1502961483605; Thu, 17 Aug 2017 02:18:03 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id i66sm6386164pfk.146.2017.08.17.02.17.58 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:18:02 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:47:55 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, linux@armlinux.org.uk, perex@perex.cz, tiwai@suse.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Bhumika Goyal Subject: [PATCH 11/12] ALSA: usb: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:45:59 +0530 Message-Id: <1502961360-22063-12-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502961360-22063-1-git-send-email-bhumirks@gmail.com> References: <1502961360-22063-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 in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/usb/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 9aa5b18..a4f3390 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -857,7 +857,7 @@ static int snd_usb_pcm_prepare(struct snd_pcm_substream *substream) return ret; } -static struct snd_pcm_hardware snd_usb_hardware = +static const struct snd_pcm_hardware snd_usb_hardware = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |