From patchwork Tue Oct 17 14:38:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 10012199 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 83415601E7 for ; Tue, 17 Oct 2017 14:39:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8779B28346 for ; Tue, 17 Oct 2017 14:39:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BBAB2860C; Tue, 17 Oct 2017 14:39:31 +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 9685B28346 for ; Tue, 17 Oct 2017 14:39:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932119AbdJQOit (ORCPT ); Tue, 17 Oct 2017 10:38:49 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:49976 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762930AbdJQOiq (ORCPT ); Tue, 17 Oct 2017 10:38:46 -0400 Received: by mail-wr0-f195.google.com with SMTP id g90so1935769wrd.6; Tue, 17 Oct 2017 07:38:45 -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=hV1AIJpnkPn7+VQ36HpfxpFWAzpW3tLJS9YHqbJIB5Q=; b=SAHmXgYxzRg4651AvbOFZMNtaz8FIGIQZBxlnj9ph2x6QySkY6BL24F5fu2Ny/xZEy y0DV+weP9fo1TYq9Eqonz6ZKZ4AnFuZZGKLzj7Sz9Hcp6DGXxCY0qE63Xl2wAzsAWfCI EwfmYJ/gi6Jv0yU7ZZPCiR8QJmHP3UaZi2w/ewPAz7Am7RsQFy9KHI6PAjrkOxavB/RG gcpNosLnidI43LWfNxD+XmwORsm9hKwvUNrlfd5EU8qLydkGpFTtdYRLt0Koe62kG1q8 0VSj+VFNY2z8SdwIzYwojyfjlK6idnM0b0sUZio+WvwOqYf7QJFEmIguan4pNBWZDxF3 RJCA== 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=hV1AIJpnkPn7+VQ36HpfxpFWAzpW3tLJS9YHqbJIB5Q=; b=DTXSqVfFb1Dg/4jDslzKHxsyk9GnkuLBgeiCgMEk4V56xUkl8n4AR8SnhKoK/nclEc 45jRchzFO4yrPJATeSZuPm3OZ7JHU6JxJahiVvHE028MXOXF9YQnbda2360zHsAGHNic F+3P/B3FHm/XUxDumrqGjI1YfwSqbK94FMS+/zFSr8UffW1W7gpOhdqNbzMv9J9LS9G3 vx+vAX8mWfNOlSm5r8Pyxt2T39XAbamuqyZVjyYH3mxcwoP6tmnSGe5NvFbX+epxKDaC D8sWArZEXvxCMvoHDhEuszrmSPaoqsIIGd7ZJjx+Ra7Zbox667FNw0ggvTTAVNZEh5ba z33A== X-Gm-Message-State: AMCzsaXyMM6FB/QT1M95xRgzPVdGHb5tp/XkDt9cn35eoif+cyd7ZJRN VPC1RlQScEiANORacU7s4JM= X-Google-Smtp-Source: ABhQp+Q8i6xC4EwZzZbNIVde6D0Ps3HrFbWHR8JQ0OH9rpPF1FwGIw32PPidxJAb9b4kUhoAMEf92Q== X-Received: by 10.223.146.37 with SMTP id 34mr3774116wrj.79.1508251124759; Tue, 17 Oct 2017 07:38:44 -0700 (PDT) Received: from gmail.com (dell-goyal.wifi.rsr.lip6.fr. [132.227.77.190]) by smtp.gmail.com with ESMTPSA id y84sm5613848wmg.43.2017.10.17.07.38.42 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Oct 2017 07:38:44 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 17 Oct 2017 16:38:41 +0200 From: Bhumika Goyal To: julia.lawall@lip6.fr, vireshk@kernel.org, mturquette@baylibre.com, sboyd@codeaurora.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 2/2] CLK: SPEAr: make aux_clk_masks structures const Date: Tue, 17 Oct 2017 16:38:34 +0200 Message-Id: <1508251114-7042-3-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508251114-7042-1-git-send-email-bhumirks@gmail.com> References: <1508251114-7042-1-git-send-email-bhumirks@gmail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are either stored in the masks 'const' field of a clk_aux structure or passed to the function clk_register_aux having the argument as const. Signed-off-by: Bhumika Goyal Acked-by: Viresh Kumar --- drivers/clk/spear/clk-aux-synth.c | 2 +- drivers/clk/spear/spear1310_clock.c | 2 +- drivers/clk/spear/spear1340_clock.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/spear/clk-aux-synth.c b/drivers/clk/spear/clk-aux-synth.c index 8bea5df..2f145e3 100644 --- a/drivers/clk/spear/clk-aux-synth.c +++ b/drivers/clk/spear/clk-aux-synth.c @@ -29,7 +29,7 @@ #define to_clk_aux(_hw) container_of(_hw, struct clk_aux, hw) -static struct aux_clk_masks default_aux_masks = { +static const struct aux_clk_masks default_aux_masks = { .eq_sel_mask = AUX_EQ_SEL_MASK, .eq_sel_shift = AUX_EQ_SEL_SHIFT, .eq1_mask = AUX_EQ1_SEL, diff --git a/drivers/clk/spear/spear1310_clock.c b/drivers/clk/spear/spear1310_clock.c index 2f86e3f..591248c 100644 --- a/drivers/clk/spear/spear1310_clock.c +++ b/drivers/clk/spear/spear1310_clock.c @@ -284,7 +284,7 @@ }; /* i2s prescaler1 masks */ -static struct aux_clk_masks i2s_prs1_masks = { +static const struct aux_clk_masks i2s_prs1_masks = { .eq_sel_mask = AUX_EQ_SEL_MASK, .eq_sel_shift = SPEAR1310_I2S_PRS1_EQ_SEL_SHIFT, .eq1_mask = AUX_EQ1_SEL, diff --git a/drivers/clk/spear/spear1340_clock.c b/drivers/clk/spear/spear1340_clock.c index cbb19a9..e5bc8c8 100644 --- a/drivers/clk/spear/spear1340_clock.c +++ b/drivers/clk/spear/spear1340_clock.c @@ -323,7 +323,7 @@ }; /* i2s prescaler1 masks */ -static struct aux_clk_masks i2s_prs1_masks = { +static const struct aux_clk_masks i2s_prs1_masks = { .eq_sel_mask = AUX_EQ_SEL_MASK, .eq_sel_shift = SPEAR1340_I2S_PRS1_EQ_SEL_SHIFT, .eq1_mask = AUX_EQ1_SEL,