From patchwork Thu Aug 17 09:15:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905361 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 4264360244 for ; Thu, 17 Aug 2017 09:17:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D9A928AB7 for ; Thu, 17 Aug 2017 09:17:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3216328AD5; Thu, 17 Aug 2017 09:17:33 +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 D5A2928AB7 for ; Thu, 17 Aug 2017 09:17:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752453AbdHQJRc (ORCPT ); Thu, 17 Aug 2017 05:17:32 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:37932 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403AbdHQJRa (ORCPT ); Thu, 17 Aug 2017 05:17:30 -0400 Received: by mail-pg0-f68.google.com with SMTP id 123so8903113pga.5; Thu, 17 Aug 2017 02:17:29 -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=tMXUCghQS1qP66ih8u90iSEA2dwc1YjnVIr7TcMf9tk=; b=KqFdY6eb6ovVC2KVD9EAxsTX7G4zAgjufOVDGFNtGvFhZCJJuK/lvVfBm/vcn/UVRf z6xWLWcUWWgxQx6hcCP3VZKJuaoBkeOWiuoQ1yQgpy6Nwe+MXKyCAapR+yVsp7DUV0J/ Mc5sdAyhxlZbCzImXTx6WB+lSkZD68o8Yiqf8cyaZN299Tgx9dvI0s4uiMcqmEx+BAVJ 4kOht//aFNSQHRyQQ3UxIkCESd8WyHbfA3EIxNGZ2lks37QIFzdWNrrCsp2zz2MvEN2O dAm1MLCdNl/CTNJ73FC6FLwZdn89/UGInb34AFvAvfg6KU7atOT+5smoEmAIWSR8MzTg l2yg== 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=tMXUCghQS1qP66ih8u90iSEA2dwc1YjnVIr7TcMf9tk=; b=b7FPxVQUnQVGSL3dTPdKdypDpKLz5++8aLdcl+bAdKT7gVq4siJLYGaCsZ3MdkEUWv YOyuPeL+IOUY49VIm8TpsMIE4gu/Te+Qxn71chpVvE6fZQkwWhITokM6U7zWgJ82b/De ttAiKfI/UgTXJov7GmLrDaW1LaFwopzVaacbLO+svhkj39T4FHgf0SbaMr3d2dihK5h7 GIWPZZLMKMvltBQDCenF0/Bcos4vruexDuD22QfnkO8TA/hSKSFn6k5PzEajArED8Ohm axKc3FxyN2Qhb9eHS/ZqejummyStrr7zo23nIy7oXNyFzqNiVKw5fv7ojiA77c0z/rDN Eaow== X-Gm-Message-State: AHYfb5h+Ea5pqPNntSnP3Lw1IQnHqR6JK49StmiuDnrAS1kj7MG+T3vg jJczORSJ95qqYg== X-Received: by 10.99.175.72 with SMTP id s8mr4293377pgo.406.1502961449644; Thu, 17 Aug 2017 02:17:29 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id p81sm1035647pfl.23.2017.08.17.02.17.24 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:17:29 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:47:21 +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 07/12] ALSA: pcmcia: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:45:55 +0530 Message-Id: <1502961360-22063-8-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/pcmcia/pdaudiocf/pdaudiocf_pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c b/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c index b48aa0a..d788409 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c @@ -193,7 +193,7 @@ static int pdacf_pcm_prepare(struct snd_pcm_substream *subs) * capture hw information */ -static struct snd_pcm_hardware pdacf_pcm_capture_hw = { +static const struct snd_pcm_hardware pdacf_pcm_capture_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_PAUSE | SNDRV_PCM_INFO_RESUME | SNDRV_PCM_INFO_MMAP_VALID |