From patchwork Thu Aug 17 09:15:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9905425 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 80D7360244 for ; Thu, 17 Aug 2017 09:20:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 81C3228681 for ; Thu, 17 Aug 2017 09:20:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7663628AD6; Thu, 17 Aug 2017 09:20:37 +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 3731C28681 for ; Thu, 17 Aug 2017 09:20:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751728AbdHQJQs (ORCPT ); Thu, 17 Aug 2017 05:16:48 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33980 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939AbdHQJQq (ORCPT ); Thu, 17 Aug 2017 05:16:46 -0400 Received: by mail-pg0-f68.google.com with SMTP id y192so8930109pgd.1; Thu, 17 Aug 2017 02:16:46 -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=sYutzVa4eUboYUVvpLWRbMKv7xQsw37fBtNUdVOXKik=; b=pOW3uN9mkKeP/2cZSK0Tv8riAym7lhYV2/qEw1RniO/zN1wxN97xgCD2tU/efLGBVK ikOGcb4zZqXGkfuueBicDjds6/gvTwpZ3wtXrinKf4saNJnCAMLc83ZmNRHdmdK0jw4J qdfQ0prJ/5yAXMYmyCaQ0caclh3aWaic57YcL0IFwT1CiA8Y8mUi/9TrDGvVtU3nYKwW NjitTcOC9YMEsGtQ4nbaU8IPHO/2gYose4zu8co06bX6+DL4hrzMqb6iXrSE/9CERRWE Q79pjdVLEGY2leCYiLvMc6F37vtPB4bwbGRN7H74oemareqei/ajBBvcl+TrRAtfjrJx sgAA== 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=sYutzVa4eUboYUVvpLWRbMKv7xQsw37fBtNUdVOXKik=; b=RHzsZjCPyx/P+piNamdA1IU/Z5bsVTSDoaBLxs+CGR49VGvoMPkqT8oVO9IcPJISDo 58NyKfE9A6GhpZO+dmKclMdj3Jf8+BN0rW5am114AICZFDMARtwIwhhZwq2osZYZqFVd UGb4y/n4rv+KswMsRHQRscJmPGVO37nCAL1xumfJkpvOzKdCPDGlHca3I0ok6/KiA+Ou 0tyqmteOIbb/ILX87xpu4ZJuCABr04CkyrSSuOk5FTtFjJiNAyqcPMfXL4zFyDAuI2VV d2LsZABc3iMUkszemNpDABIFkJ7hg7dwQvqHp+i+6SKkethRwUZw57uVcXsWnjYlnUmt Xqhw== X-Gm-Message-State: AHYfb5hO4PtkyB+DPRnb9JYjA7ovEpeGotZLqlaqH6aZ86+iPEjbTNny Bfp5DqD9Ahi6tA== X-Received: by 10.98.62.197 with SMTP id y66mr4511792pfj.270.1502961406307; Thu, 17 Aug 2017 02:16:46 -0700 (PDT) Received: from gmail.com ([117.196.97.196]) by smtp.gmail.com with ESMTPSA id n11sm5253674pgr.76.2017.08.17.02.16.40 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 17 Aug 2017 02:16:45 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Thu, 17 Aug 2017 14:46:38 +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 02/12] ALSA: atmel: make snd_pcm_hardware const Date: Thu, 17 Aug 2017 14:45:50 +0530 Message-Id: <1502961360-22063-3-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/atmel/ac97c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c index 52b0522..f3f582e 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c @@ -66,7 +66,7 @@ struct atmel_ac97c { #define ac97c_readl(chip, reg) \ __raw_readl((chip)->regs + AC97C_##reg) -static struct snd_pcm_hardware atmel_ac97c_hw = { +static const struct snd_pcm_hardware atmel_ac97c_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED