From patchwork Sat Aug 12 15:31:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897355 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 91A1A60325 for ; Sat, 12 Aug 2017 15:35:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 83782286BB for ; Sat, 12 Aug 2017 15:35:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 784DD287AC; Sat, 12 Aug 2017 15:35:53 +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 368DC286BB for ; Sat, 12 Aug 2017 15:35:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752130AbdHLPcI (ORCPT ); Sat, 12 Aug 2017 11:32:08 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36598 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbdHLPcG (ORCPT ); Sat, 12 Aug 2017 11:32:06 -0400 Received: by mail-pg0-f65.google.com with SMTP id y129so5358564pgy.3; Sat, 12 Aug 2017 08:32:06 -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=RU3TRE7Wl1Zowuzm/UFl5dpHpcQ+pSFZkOF7RcgQVMA=; b=AWgc5NpsYIT+ZkmSUepT2cvlb8MogYYzdzQDBFhX1J5KbtbVBj9+UX+r0XLnst01UQ h9jfybi1xLyq0DH87IOAQBUiK7tUJ0GRKf1FJ/ehWO8esntXcVQCgXuImXibroTz2nkw 85m0DmO5sfcDEG/vNhyfi5u/msRk93NObsMSMX4vxoed5I7kHiHkfMhSVfJpKl3Lb51R VORI6J8FtrbXZ7B1DqyjBlKajWFZNGSK/pkxcK0XZQUK4NOUuSkR+PjDJLHH8V5GrmdX 7xol+YUz74Izao/kmD4lb0nq39J67XUecwwMSXoGTk+LyHUFP6bH7BKU0Jd0soYK0TdF CIkg== 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=RU3TRE7Wl1Zowuzm/UFl5dpHpcQ+pSFZkOF7RcgQVMA=; b=gkcErcjQKpmsTwDCo2LfCOMw7JwV27KZ2KeBfF2nXbRG5kVfTeeu4r3K2/jCwH+bFb xXYkO5D4tQaUfQywivRceV2jBym6BQF14rLX+D2yL6Z+HGP1S21eF84r/CA5+6unsYbw spxNxx4TXUFxzrFh0Xf2iLsYBZ2XY8vfeX87Fon/oeZDf2ccxCWAkEGWmHm/pAYfTKAS IAa50DBerO/1P7jwfyrqRxEZf47sGEz+aHLa7hOdXmYGAWnkfALCL/pUttUTA8m+/Il8 Q3o31kXijQ5FlV7x/rowtWGnaO+ILd50DYqmN7Gw02pxvAEHWUyoMGU4pF3tqfl5sKyo H5Zg== X-Gm-Message-State: AHYfb5jxFnZgP0EmgVD/70XjvjMfyfh23ksaw/Q8mRs7WJVTdR2hNj9T 2uZis7QrO1uHgQ== X-Received: by 10.84.167.2 with SMTP id c2mr21995851plb.370.1502551925694; Sat, 12 Aug 2017 08:32:05 -0700 (PDT) Received: from gmail.com ([117.196.108.245]) by smtp.gmail.com with ESMTPSA id s8sm7318262pfd.77.2017.08.12.08.32.00 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 12 Aug 2017 08:32:05 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 12 Aug 2017 21:01:57 +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 03/16] ALSA: cs46xx: make snd_pcm_hardware const Date: Sat, 12 Aug 2017 21:01:15 +0530 Message-Id: <1502551888-30325-4-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 these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- sound/pci/cs46xx/cs46xx_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index 709fb1a..0020fd0 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c @@ -1438,7 +1438,7 @@ static irqreturn_t snd_cs46xx_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static struct snd_pcm_hardware snd_cs46xx_playback = +static const struct snd_pcm_hardware snd_cs46xx_playback = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | @@ -1460,7 +1460,7 @@ static irqreturn_t snd_cs46xx_interrupt(int irq, void *dev_id) .fifo_size = 0, }; -static struct snd_pcm_hardware snd_cs46xx_capture = +static const struct snd_pcm_hardware snd_cs46xx_capture = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED |