From patchwork Tue Aug 22 13:42:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9915235 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 E7D98600C5 for ; Tue, 22 Aug 2017 13:43:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3AB928793 for ; Tue, 22 Aug 2017 13:43:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D884D2887E; Tue, 22 Aug 2017 13:43:48 +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=unavailable 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 8732528793 for ; Tue, 22 Aug 2017 13:43:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933039AbdHVNnE (ORCPT ); Tue, 22 Aug 2017 09:43:04 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35676 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932889AbdHVNmS (ORCPT ); Tue, 22 Aug 2017 09:42:18 -0400 Received: by mail-pf0-f193.google.com with SMTP id k3so1169232pfc.2; Tue, 22 Aug 2017 06:42:17 -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=JxlTHhPogMVOwZfmjdB4cKSMBryc3ghL6rw2Cjc6kgA=; b=RMMj96fXI6zjH3u0azecRmu1j/I9dSM0eFLCmn740YQQ/X5lz1FsTQ5r++m6d0hCTl gOaJpc4eF7XbSPslphsTvDF1K8CueBdRkmowSPA36kwiDsvsm908EwQiH/ik2HeS4S6g 6VSo1LPeFCCq7bJhCHWlbJ3vPzGqzITEHrLJMsmuTzgyPI0IT8YR1Bh6YKcHmSVpTyvW ZRLf0nYTmO00AT5rgo4yVIQIxuVN4dcA+Tm9TfSOb204kJmlTbGmXKBGr+yvU8Xztrqh 951Q4J9oM7rOfBBpZ12ae0FhekAzS6kY1aPC4udBl3gvZS+CzhGRDJXU/JFfcwGOAQ0G PvKQ== 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=JxlTHhPogMVOwZfmjdB4cKSMBryc3ghL6rw2Cjc6kgA=; b=BeAfzlI/JoOx8NzwoLScM2AxzjjgzucSBfEW8hQuRHopC+0X54uhRHqac3TsBGB6sd jvAKby606+54xs2Xz3K9y+v5dDMk0P2Xcc4CKK3zKFjuFZsDAWxKJBEKrQjegI2e6s2s t7e5yNNQs5gCrlhVAYv4QPGRfdRftiRR/31nqrSC4/3iD+nmqYQ0Z2kDENfJ3bL+rHys /f9UF7OLt0d8UuELtnE9WmQemjl3ly/r4k+MLybBNmp4EHGbJuEhdxHkTjUm4GGHVpnq cOKK2MQqGqcAij9MbcUZqbOUULFbky3aW6TMg7T7VcsP764+3cHsSCkP6d0f3VIC1sIb 5f6w== X-Gm-Message-State: AHYfb5gASvCkkZT6vxTzsRSpTMVTpMZ7+2ULOZzIkrkphKjsQ/qPvXtY q9W6ZRo4uD5BEQ== X-Received: by 10.84.174.67 with SMTP id q61mr789778plb.463.1503409337460; Tue, 22 Aug 2017 06:42:17 -0700 (PDT) Received: from gmail.com ([59.94.207.33]) by smtp.gmail.com with ESMTPSA id a22sm25500648pfj.94.2017.08.22.06.42.13 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 22 Aug 2017 06:42:16 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 22 Aug 2017 19:12:10 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, mturquette@baylibre.com, sboyd@codeaurora.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] clk: hisilicon: make clk_ops const Date: Tue, 22 Aug 2017 19:12:07 +0530 Message-Id: <1503409327-20278-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/hisilicon/clk-hi3620.c | 2 +- drivers/clk/hisilicon/clk-hix5hd2.c | 4 ++-- drivers/clk/hisilicon/clkgate-separated.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/hisilicon/clk-hi3620.c b/drivers/clk/hisilicon/clk-hi3620.c index fa0fba6..77072c7 100644 --- a/drivers/clk/hisilicon/clk-hi3620.c +++ b/drivers/clk/hisilicon/clk-hi3620.c @@ -415,7 +415,7 @@ static int mmc_clk_set_rate(struct clk_hw *hw, unsigned long rate, return mmc_clk_set_timing(hw, rate); } -static struct clk_ops clk_mmc_ops = { +static const struct clk_ops clk_mmc_ops = { .prepare = mmc_clk_prepare, .determine_rate = mmc_clk_determine_rate, .set_rate = mmc_clk_set_rate, diff --git a/drivers/clk/hisilicon/clk-hix5hd2.c b/drivers/clk/hisilicon/clk-hix5hd2.c index 14b05ef..9584f0c 100644 --- a/drivers/clk/hisilicon/clk-hix5hd2.c +++ b/drivers/clk/hisilicon/clk-hix5hd2.c @@ -208,7 +208,7 @@ static void clk_ether_unprepare(struct clk_hw *hw) writel_relaxed(val, clk->ctrl_reg); } -static struct clk_ops clk_ether_ops = { +static const struct clk_ops clk_ether_ops = { .prepare = clk_ether_prepare, .unprepare = clk_ether_unprepare, }; @@ -247,7 +247,7 @@ static void clk_complex_disable(struct clk_hw *hw) writel_relaxed(val, clk->phy_reg); } -static struct clk_ops clk_complex_ops = { +static const struct clk_ops clk_complex_ops = { .enable = clk_complex_enable, .disable = clk_complex_disable, }; diff --git a/drivers/clk/hisilicon/clkgate-separated.c b/drivers/clk/hisilicon/clkgate-separated.c index 7908bc3..1172b09 100644 --- a/drivers/clk/hisilicon/clkgate-separated.c +++ b/drivers/clk/hisilicon/clkgate-separated.c @@ -88,7 +88,7 @@ static int clkgate_separated_is_enabled(struct clk_hw *hw) return reg ? 1 : 0; } -static struct clk_ops clkgate_separated_ops = { +static const struct clk_ops clkgate_separated_ops = { .enable = clkgate_separated_enable, .disable = clkgate_separated_disable, .is_enabled = clkgate_separated_is_enabled,