From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752119AbdG1NJh (ORCPT ); Fri, 28 Jul 2017 09:09:37 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34101 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751673AbdG1NJf (ORCPT ); Fri, 28 Jul 2017 09:09:35 -0400 From: Bhumika Goyal To: julia.lawall@lip6.fr, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 4/5] ALSA: sparc: constify snd_timer_hardware structure Date: Fri, 28 Jul 2017 18:38:30 +0530 Message-Id: <1501247311-19803-6-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501247311-19803-1-git-send-email-bhumirks@gmail.com> References: <1501247311-19803-1-git-send-email-bhumirks@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Declare snd_timer_hardware structure as const as it is only used during a copy operation. As it is not modified anywhere, it can be made const. Cross compiled for sparc architecture. Signed-off-by: Bhumika Goyal --- sound/sparc/cs4231.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/sparc/cs4231.c b/sound/sparc/cs4231.c index 3d7d425..0a97e97 100644 --- a/sound/sparc/cs4231.c +++ b/sound/sparc/cs4231.c @@ -868,7 +868,7 @@ static int snd_cs4231_timer_close(struct snd_timer *timer) return 0; } -static struct snd_timer_hardware snd_cs4231_timer_table = { +static const struct snd_timer_hardware snd_cs4231_timer_table = { .flags = SNDRV_TIMER_HW_AUTO, .resolution = 9945, .ticks = 65535, -- 1.9.1