From patchwork Tue Aug 22 13:14:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9915147 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 8F085603FA for ; Tue, 22 Aug 2017 13:15:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8203328699 for ; Tue, 22 Aug 2017 13:15:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75F3A28769; Tue, 22 Aug 2017 13:15:01 +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 0DA3B28699 for ; Tue, 22 Aug 2017 13:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932801AbdHVNPA (ORCPT ); Tue, 22 Aug 2017 09:15:00 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:37657 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932720AbdHVNO7 (ORCPT ); Tue, 22 Aug 2017 09:14:59 -0400 Received: by mail-pf0-f193.google.com with SMTP id r62so3362145pfj.4; Tue, 22 Aug 2017 06:14:59 -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=xuyG23gyBqbJhqCg+uXBIpuGDq6UXc1o+6NwaR/Duug=; b=LfFqGlPpODh1fbtIEP8DgJxYK7THoqEzJmk2Hss3YoxlGWcz7j/69aLN02hRm/O50Q E68VYHIJkOJgVJAa9/HeMF3ZmKNOlQAe5hA7fzFA9fSoXcPwCaKLtlDPMd3IC5Kez83o HxEzwM0yeUMvF8tlq0pp8EwJ2lq5DhOdn/s+cf98pWAW+epAdw2xhbKJ9PhOwCRvX5p6 /ES6PJ6DsVA0b4bASlCbO5h3zmr/o9dwhwcR53XQQ5VmDH8Daf2ytr08tosqj0+4pHjg t/1GFGOV3viDxNBxQvplxl5eWlS7qvkh0zEez0HIamio6oc0ZwxmCbqcAySlAIdUPJZt 3NfA== 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=xuyG23gyBqbJhqCg+uXBIpuGDq6UXc1o+6NwaR/Duug=; b=RwRrHY+3byrR6nRs/OeJYTSbvC1ns0CQxf6KGJFywEkHcH4wRnd+/Q1T7BX7DJEfBk tg3CXrPv+L2yW/q+K911GRGet+vw2E+BTbU0hoY5Pvbc7LfY6oayuL2dFtu4r7Uqtt8t PBwjL6UmqNdGfvUupmYUC5/4ywss/agHPlAyt/OKoV5Mpv82ZWntWnOcIrw56/Abq5u4 bRyy4JZs8SL8rHYsNnzJ+Y92gfo4xvDEsIweM0KaySH2BjofqJDfbcQDWAltBfIgvBvR fwMPhDu2WMQPBZwMu0AFmLI3+6cch2kh2YWizv6xPTZx+UDVBs+KBszDvN08Cd6oF+Zc BEoA== X-Gm-Message-State: AHYfb5hfw/afI2q3f1/R60fXS+j8IVc1P957/mi1OuvkSxuu1CmPgPDk TRVayCMNrbEmWQ== X-Received: by 10.98.97.3 with SMTP id v3mr678997pfb.121.1503407699123; Tue, 22 Aug 2017 06:14:59 -0700 (PDT) Received: from gmail.com ([59.94.207.33]) by smtp.gmail.com with ESMTPSA id o25sm754245pfj.117.2017.08.22.06.14.54 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 22 Aug 2017 06:14:58 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 22 Aug 2017 18:44:52 +0530 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] clk: spear: make clk_ops const Date: Tue, 22 Aug 2017 18:44:50 +0530 Message-Id: <1503407690-13541-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 Acked-by: Viresh Kumar --- drivers/clk/spear/clk-aux-synth.c | 2 +- drivers/clk/spear/clk-frac-synth.c | 2 +- drivers/clk/spear/clk-gpt-synth.c | 2 +- drivers/clk/spear/clk-vco-pll.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/clk/spear/clk-aux-synth.c b/drivers/clk/spear/clk-aux-synth.c index f271c35..3bd00c8 100644 --- a/drivers/clk/spear/clk-aux-synth.c +++ b/drivers/clk/spear/clk-aux-synth.c @@ -128,7 +128,7 @@ static int clk_aux_set_rate(struct clk_hw *hw, unsigned long drate, return 0; } -static struct clk_ops clk_aux_ops = { +static const struct clk_ops clk_aux_ops = { .recalc_rate = clk_aux_recalc_rate, .round_rate = clk_aux_round_rate, .set_rate = clk_aux_set_rate, diff --git a/drivers/clk/spear/clk-frac-synth.c b/drivers/clk/spear/clk-frac-synth.c index 58d678b..eaf970b 100644 --- a/drivers/clk/spear/clk-frac-synth.c +++ b/drivers/clk/spear/clk-frac-synth.c @@ -116,7 +116,7 @@ static int clk_frac_set_rate(struct clk_hw *hw, unsigned long drate, return 0; } -static struct clk_ops clk_frac_ops = { +static const struct clk_ops clk_frac_ops = { .recalc_rate = clk_frac_recalc_rate, .round_rate = clk_frac_round_rate, .set_rate = clk_frac_set_rate, diff --git a/drivers/clk/spear/clk-gpt-synth.c b/drivers/clk/spear/clk-gpt-synth.c index 1a722e9..3641799 100644 --- a/drivers/clk/spear/clk-gpt-synth.c +++ b/drivers/clk/spear/clk-gpt-synth.c @@ -105,7 +105,7 @@ static int clk_gpt_set_rate(struct clk_hw *hw, unsigned long drate, return 0; } -static struct clk_ops clk_gpt_ops = { +static const struct clk_ops clk_gpt_ops = { .recalc_rate = clk_gpt_recalc_rate, .round_rate = clk_gpt_round_rate, .set_rate = clk_gpt_set_rate, diff --git a/drivers/clk/spear/clk-vco-pll.c b/drivers/clk/spear/clk-vco-pll.c index dc21ca4..069b48a 100644 --- a/drivers/clk/spear/clk-vco-pll.c +++ b/drivers/clk/spear/clk-vco-pll.c @@ -165,7 +165,7 @@ static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, return 0; } -static struct clk_ops clk_pll_ops = { +static const struct clk_ops clk_pll_ops = { .recalc_rate = clk_pll_recalc_rate, .round_rate = clk_pll_round_rate, .set_rate = clk_pll_set_rate, @@ -266,7 +266,7 @@ static int clk_vco_set_rate(struct clk_hw *hw, unsigned long drate, return 0; } -static struct clk_ops clk_vco_ops = { +static const struct clk_ops clk_vco_ops = { .recalc_rate = clk_vco_recalc_rate, .round_rate = clk_vco_round_rate, .set_rate = clk_vco_set_rate,