From patchwork Tue Aug 22 13:11: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: 9915129 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 7A4F2603FA for ; Tue, 22 Aug 2017 13:11:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E41A2853B for ; Tue, 22 Aug 2017 13:11:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 631F42866C; Tue, 22 Aug 2017 13:11:32 +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 1153D2853B for ; Tue, 22 Aug 2017 13:11:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932831AbdHVNLa (ORCPT ); Tue, 22 Aug 2017 09:11:30 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38025 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932657AbdHVNL3 (ORCPT ); Tue, 22 Aug 2017 09:11:29 -0400 Received: by mail-pf0-f196.google.com with SMTP id h75so5752355pfh.5; Tue, 22 Aug 2017 06:11:29 -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=55zKvpUOsMOwHT0H7/+MB6JIl9EKAp3Bl5gLOs/ekLA=; b=FWJAYmcT0arGtc8vGGDN7+xMTVIZjtzqENvsZfjz4YGfbrVB2RUP4kKXRJ7z/F/T3n v6gFlG07gB0SrNhMqPEF9wgWJIeMj/m6744ieeVE8NcI6MUeSiR7R5nzP1GFgJlLbiK6 dyF1BFOUONSpR05zi5iPzPZ7dPI1VFWgSRFZCbsYH5R3Ansu6gYiXEuXKm362j6N+FmI iUItM7rnXIC3copN6xcz8w+MuanL1V0USjVzCF2GS7Ro95F16Gr7QhbEj3jE4Ty5Vrw6 26kWBX7/JJimNJ4rlIGZ0JpTvT4+xnwI6wrdNP+5d/IY15iGteP35K/c11C59O7yLAsB nKGw== 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=55zKvpUOsMOwHT0H7/+MB6JIl9EKAp3Bl5gLOs/ekLA=; b=H1GzB7orxImNLyMwqKFUdQlyMH+wiikYMGrNi6P6jx+hTGBy50xZ5ol5GZQKArhH7z xQLPW13usRKQkBNf62ACqZ8VepsdfkHT0T3xIbLeimadSPi161rcA6ivVBaPPw+Skivs 9pattWtEITVA3r+v2JlXr45v7214MwIPCxK5zt/NGkmTrYzB6xQ0jX9xGz/GAmcrsPVe d4Uyt64WfzQwllnFJhy4KyjhJsQif1cuAEBqg7fse5KINNfWFP1Ci1PfVD/aI+ZEcfH1 NFwsdoWHSSpIRtXTyRt+OICJj9WJsoniB2F+nlkRHewlhNpWvcgAiLzKTC/Qz5mYDOv2 7Jwg== X-Gm-Message-State: AHYfb5hyFkcuIaUDYXIvf+6N+o6Wc4TyL5Qa4o8k2ZOSqdUaHpWTY1o+ 13pf2tGSlHQvaw== X-Received: by 10.98.159.205 with SMTP id v74mr661439pfk.311.1503407488272; Tue, 22 Aug 2017 06:11:28 -0700 (PDT) Received: from gmail.com ([59.94.207.33]) by smtp.gmail.com with ESMTPSA id h29sm28683851pfd.145.2017.08.22.06.11.23 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 22 Aug 2017 06:11:27 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 22 Aug 2017 18:41:21 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, t-kristo@ti.com, mturquette@baylibre.com, sboyd@codeaurora.org, linux-omap@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] clk: ti: make clk_ops const Date: Tue, 22 Aug 2017 18:41:15 +0530 Message-Id: <1503407475-11620-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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 Acked-by: Tero Kristo --- drivers/clk/ti/adpll.c | 2 +- drivers/clk/ti/apll.c | 2 +- drivers/clk/ti/fapll.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/ti/adpll.c b/drivers/clk/ti/adpll.c index 255cafb..d5c6db4 100644 --- a/drivers/clk/ti/adpll.c +++ b/drivers/clk/ti/adpll.c @@ -486,7 +486,7 @@ static u8 ti_adpll_get_parent(struct clk_hw *hw) return 0; } -static struct clk_ops ti_adpll_ops = { +static const struct clk_ops ti_adpll_ops = { .prepare = ti_adpll_prepare, .unprepare = ti_adpll_unprepare, .is_prepared = ti_adpll_is_prepared, diff --git a/drivers/clk/ti/apll.c b/drivers/clk/ti/apll.c index 06f486b..83b148f 100644 --- a/drivers/clk/ti/apll.c +++ b/drivers/clk/ti/apll.c @@ -304,7 +304,7 @@ static void omap2_apll_disable(struct clk_hw *hw) ti_clk_ll_ops->clk_writel(v, &ad->control_reg); } -static struct clk_ops omap2_apll_ops = { +static const struct clk_ops omap2_apll_ops = { .enable = &omap2_apll_enable, .disable = &omap2_apll_disable, .is_enabled = &omap2_apll_is_enabled, diff --git a/drivers/clk/ti/fapll.c b/drivers/clk/ti/fapll.c index 66a0d0e..071af44 100644 --- a/drivers/clk/ti/fapll.c +++ b/drivers/clk/ti/fapll.c @@ -268,7 +268,7 @@ static int ti_fapll_set_rate(struct clk_hw *hw, unsigned long rate, return 0; } -static struct clk_ops ti_fapll_ops = { +static const struct clk_ops ti_fapll_ops = { .enable = ti_fapll_enable, .disable = ti_fapll_disable, .is_enabled = ti_fapll_is_enabled, @@ -478,7 +478,7 @@ static int ti_fapll_synth_set_rate(struct clk_hw *hw, unsigned long rate, return 0; } -static struct clk_ops ti_fapll_synt_ops = { +static const struct clk_ops ti_fapll_synt_ops = { .enable = ti_fapll_synth_enable, .disable = ti_fapll_synth_disable, .is_enabled = ti_fapll_synth_is_enabled,