From patchwork Sat Aug 12 15:31:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897333 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 A337660351 for ; Sat, 12 Aug 2017 15:34:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94935286BB for ; Sat, 12 Aug 2017 15:34:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 894A6287AC; Sat, 12 Aug 2017 15:34:47 +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 4BFCB286BB for ; Sat, 12 Aug 2017 15:34:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752490AbdHLPdN (ORCPT ); Sat, 12 Aug 2017 11:33:13 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35931 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752374AbdHLPdM (ORCPT ); Sat, 12 Aug 2017 11:33:12 -0400 Received: by mail-pf0-f196.google.com with SMTP id t83so6014964pfj.3; Sat, 12 Aug 2017 08:33:11 -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=MEBGjzrFvQ6YXTYXxT/Ax6id77Qg7dnUJ/mDOkq/VN0=; b=IsEgnz0tZHGnmg1mYP8s7q5t/UROmKWHaL1aHNiDfyMcTjmuOqN/JtvkpPD0QlrcH1 T/60JsLore5dwi1v1OuIOKPXQDJXDlxHhcfl7zTgHFcU2/Gzotgw37WWzTSEoAJ4AGoE 8wOXC3KjD5TElav0nDArTjlDeU+5L6+HxibaMHZrq3xq2FvMYMoALPVvoeIciVD6Q1pl RNywgtNxUoB93zlE89f+mKBP+F6W4/qs/bBdMWpG1Cqz1iij7RIgqwEWJmjWXL8xLXNv Xt2Xfa8Lx29Tih8n3f94Z56pf04/5U2nS5KGRYTgtb2TuxIj9rdEDWDUUWaZarWa62Zt soWg== 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=MEBGjzrFvQ6YXTYXxT/Ax6id77Qg7dnUJ/mDOkq/VN0=; b=Wg8YiJ3OQdygiE8yCKqJiQm2RSY6NkcG3WoihSeOd0O9y0QC2Qkg0UWPBVY+Kx/D0m +u8/8rFr98cZT+uxK4PzZ2ytEug2AMgwty9ONsDtqALyQxwtNsEN9oRsIVvsfHxNMb/M iNYz0pT3K0bfRWYuntowKMjMEQySO2gs/Hz3Z2JG41EkQGaSAqtlpxJOgbYzVzv0ZKP3 aHfhr0JOpFOqE7vXnHXzjf1DAH8a1BEFUg2fSY5Q69I0eRjMQsvG4edSVSYiWQfD0c+n IJ9k6c5HvGeWohmMFYvbTQ20/4cD+6bjAc8YAVXnCOfesYF0dWlINItgQq8hJZOrlziO Dfsw== X-Gm-Message-State: AHYfb5jslFYPmM07gW75rVLS/v0V9IZ6GGWga1k2jHmnaYnZMTyy7oI9 V/K+WGDFGtU9Cw== X-Received: by 10.98.157.83 with SMTP id i80mr19783141pfd.266.1502551991327; Sat, 12 Aug 2017 08:33:11 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id x4sm6377323pfb.79.2017.08.12.08.33.05 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:33:10 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:03:02 +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 11/16] ALSA: pcxhr: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:23 +0530 Message-Id: <1502551888-30325-12-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/pcxhr/pcxhr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index fa919f5..e6f9aa6 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c @@ -986,7 +986,7 @@ static int pcxhr_hw_free(struct snd_pcm_substream *subs) /* * CONFIGURATION SPACE for all pcms, mono pcm must update channels_max */ -static struct snd_pcm_hardware pcxhr_caps = +static const struct snd_pcm_hardware pcxhr_caps = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |