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: 9915151 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 3DFBC603F9 for ; Tue, 22 Aug 2017 13:15:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3326B28678 for ; Tue, 22 Aug 2017 13:15:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 282CA28699; Tue, 22 Aug 2017 13:15:34 +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=-2.6 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 724C128678 for ; Tue, 22 Aug 2017 13:15:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=mPTHpuU7Bl/5MdodFgadqH0MGMxJsPmaecIjC3jWe4E=; b=kDm MwOVn61zv0YPafw6JpSfUbwqA+4/JDOS9kujMuPtWdQCFjJszWkbPInXX18+AcpEZPXVy0sYhFF/F 9JRFY+t4wYSD55okZq9bW0XTwxAy5uiHIeN9P0opUYKAt8JGTMSyfRsI3YH3h9HuWvbh3VhmhpuLc 7dU5RYo4fhu3j33IPFz4Cd525Z7RN+S8oh6nZ95OhgRljc63x9OzCsLmUw8OOq9D/9IfpCfjvgfxU evbe1DbxHkbOsSlXpN3HPXTeyD7H9bukOip3Y3dA4TJWb0mUA+BjMn2L9GtDyFOr3EGWDDdqWQoIY ToWshMRkyfdLDQFY6Y1RsQwRFzHtc2Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dk91l-00016V-AZ; Tue, 22 Aug 2017 13:15:29 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dk91b-0000Ce-Px for linux-arm-kernel@lists.infradead.org; Tue, 22 Aug 2017 13:15:26 +0000 Received: by mail-pf0-x242.google.com with SMTP id x137so1118286pfd.0 for ; 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=I//RfmDvO3T7iDfQnATNR4Y7rLI5Trx0hF/1BLzp9uLubX0hKszkD+t/TpcdzFjxn2 2iDKCwmswX1blqOrEXq1gKCm2nm3tV15IelRGFxYa92wZDkcxZM1+iGeYd9Uh5NIYelW xJ3f8F+DpfHmwPs+U5NmIVw2q60s0um1JaIjbV6rQxRUFz30g33/HVwEvUAeNC8MU7Bd V071Ug2gjeoVBnR1q1aFpCa7S6eqaj3iazLvb716AYSb6r0MmGvlBQAwARtAYO5MWubR KKNFJWfXq/vabySzuKYa+jJIdxshFPYykCQv2dF+K9LpM18S+wnpG4yg/hTf1a9J1Gsb zJow== X-Gm-Message-State: AHYfb5gF6YolzaWJpWcaShiIj6+kE/vOvTA0ItFLKDDAwWK1Y5PmK+6B 5zYgu1tO+9QZmF0rdsE= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170822_061520_170952_904DC415 X-CRM114-Status: GOOD ( 10.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bhumika Goyal MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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,