From patchwork Tue Aug 22 13:18:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9915167 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 517A4603F9 for ; Tue, 22 Aug 2017 13:18:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49029286AB for ; Tue, 22 Aug 2017 13:18:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DC2F288A0; Tue, 22 Aug 2017 13:18:46 +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 CF293286AB for ; Tue, 22 Aug 2017 13:18:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932796AbdHVNSp (ORCPT ); Tue, 22 Aug 2017 09:18:45 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:35627 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932657AbdHVNSo (ORCPT ); Tue, 22 Aug 2017 09:18:44 -0400 Received: by mail-pg0-f65.google.com with SMTP id m133so8029627pga.2; Tue, 22 Aug 2017 06:18:44 -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; bh=K6IqkHCH1D92kjKlivwvkZYsB9hJ1DHjUIbtQFUIG4U=; b=jTTp79RBCI8XsKEQtW6Sv/DlNwoodZCjYGhvisn00r5wuN1g9ke00YbykZkZdC4SJ5 qxl5vAcF+ng9j3w8joxtzLTIswS6zGhKOry+DnV4apRaXKmqYAdMgd9ZWqoY7DtA2a0C iJxvvkL0gs2ti0aJ9Yy+zj8+CZIRbJR6Is5vPdokzNNT8n7qAX3lMiMOij4RiFOFssYr WetToyOhAQ7oIwbIll8QRIoRGrRsS9oodeoZY7jHg99aWg9nGWAW38bFL/dLIIHk3NBf 4FliIiCwdNEfLuYI5lPjekD8lMAMzjiFo00BzUdxjnF7ycdou0/xQVok7BcbB7gTCb0I Vjxg== 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; bh=K6IqkHCH1D92kjKlivwvkZYsB9hJ1DHjUIbtQFUIG4U=; b=Eg3eCnMhN3Vy8zMsoKjXzNu542xvPsZ/Q9ih8ZspRlXBkRSu+esPqPqMZ8k80VJQGf bBN4zZqUNZpQ8mg6bidaPG2/8drOF9wxSqzbNfMVsM9+3AvKAN+1dxGq+xfydftuVfRQ ISKfrx22YYEw5oZM2XktE85RYfjIrQ3U8fpLGZ17TXz4tDo1gaYv5nrNjUehkm7AlT+b US+aCn/OMlFoFtt9+ch7uAF0m5oiWHjAh40mCODHUndpuC560C9QzmMTL6Kfmd2nfC8W Q8x6k/YJPy1oMC0xVu/Qvvet2OYcmSR16qetU5UUpGU0UJlcyXqO8M6f8pmTHMUIvmzF dFow== X-Gm-Message-State: AHYfb5gITg6ftEVKeE16bGH52jjOP7qAznj5BDwA0YU7ePMAcj0YNG2X IYyRlTij5slsUQ== X-Received: by 10.99.182.67 with SMTP id v3mr707869pgt.228.1503407923794; Tue, 22 Aug 2017 06:18:43 -0700 (PDT) Received: from gmail.com ([59.94.207.33]) by smtp.gmail.com with ESMTPSA id t11sm27848355pfa.143.2017.08.22.06.18.38 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 22 Aug 2017 06:18:43 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 22 Aug 2017 18:48:36 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, 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] clk: imx: make clk_ops const Date: Tue, 22 Aug 2017 18:48:29 +0530 Message-Id: <1503407909-15469-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 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 only stored in the const field of a clk_init_data structure. Signed-off-by: Bhumika Goyal --- drivers/clk/imx/clk-busy.c | 4 ++-- drivers/clk/imx/clk-gate2.c | 2 +- drivers/clk/imx/clk-pllv1.c | 2 +- drivers/clk/imx/clk-pllv2.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clk/imx/clk-busy.c b/drivers/clk/imx/clk-busy.c index 5cc9959..6df3389 100644 --- a/drivers/clk/imx/clk-busy.c +++ b/drivers/clk/imx/clk-busy.c @@ -72,7 +72,7 @@ static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate, return ret; } -static struct clk_ops clk_busy_divider_ops = { +static const struct clk_ops clk_busy_divider_ops = { .recalc_rate = clk_busy_divider_recalc_rate, .round_rate = clk_busy_divider_round_rate, .set_rate = clk_busy_divider_set_rate, @@ -147,7 +147,7 @@ static int clk_busy_mux_set_parent(struct clk_hw *hw, u8 index) return ret; } -static struct clk_ops clk_busy_mux_ops = { +static const struct clk_ops clk_busy_mux_ops = { .get_parent = clk_busy_mux_get_parent, .set_parent = clk_busy_mux_set_parent, }; diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index db44a19..60fc9d7 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -118,7 +118,7 @@ static void clk_gate2_disable_unused(struct clk_hw *hw) spin_unlock_irqrestore(gate->lock, flags); } -static struct clk_ops clk_gate2_ops = { +static const struct clk_ops clk_gate2_ops = { .enable = clk_gate2_enable, .disable = clk_gate2_disable, .disable_unused = clk_gate2_disable_unused, diff --git a/drivers/clk/imx/clk-pllv1.c b/drivers/clk/imx/clk-pllv1.c index 82fe366..703818e 100644 --- a/drivers/clk/imx/clk-pllv1.c +++ b/drivers/clk/imx/clk-pllv1.c @@ -106,7 +106,7 @@ static unsigned long clk_pllv1_recalc_rate(struct clk_hw *hw, return ull; } -static struct clk_ops clk_pllv1_ops = { +static const struct clk_ops clk_pllv1_ops = { .recalc_rate = clk_pllv1_recalc_rate, }; diff --git a/drivers/clk/imx/clk-pllv2.c b/drivers/clk/imx/clk-pllv2.c index 4aeda56..c845b8c 100644 --- a/drivers/clk/imx/clk-pllv2.c +++ b/drivers/clk/imx/clk-pllv2.c @@ -226,7 +226,7 @@ static void clk_pllv2_unprepare(struct clk_hw *hw) __raw_writel(reg, pllbase + MXC_PLL_DP_CTL); } -static struct clk_ops clk_pllv2_ops = { +static const struct clk_ops clk_pllv2_ops = { .prepare = clk_pllv2_prepare, .unprepare = clk_pllv2_unprepare, .recalc_rate = clk_pllv2_recalc_rate,