All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julia Lawall <Julia.Lawall@lip6.fr>
To: Liviu Dudau <liviu.dudau@arm.com>
Cc: kernel-janitors@vger.kernel.org,
	Sudeep Holla <sudeep.holla@arm.com>,
	Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Russell King <linux@armlinux.org.uk>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/8] ARM: vexpress/spc: constify clk_ops structure
Date: Sat, 27 Oct 2018 07:47:36 +0200	[thread overview]
Message-ID: <1540619262-22681-3-git-send-email-Julia.Lawall@lip6.fr> (raw)
In-Reply-To: <1540619262-22681-1-git-send-email-Julia.Lawall@lip6.fr>

The clk_ops structure is only stored in the ops field of a
clk_init_data structure.  This field is const, so the clk_ops
structure can be const as well.

Identified and transformed using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 arch/arm/mach-vexpress/spc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-vexpress/spc.c b/arch/arm/mach-vexpress/spc.c
index 0f5381d13494..611f22de48cb 100644
--- a/arch/arm/mach-vexpress/spc.c
+++ b/arch/arm/mach-vexpress/spc.c
@@ -521,7 +521,7 @@ static int spc_set_rate(struct clk_hw *hw, unsigned long rate,
 	return ve_spc_set_performance(spc->cluster, rate / 1000);
 }
 
-static struct clk_ops clk_spc_ops = {
+static const struct clk_ops clk_spc_ops = {
 	.recalc_rate = spc_recalc_rate,
 	.round_rate = spc_round_rate,
 	.set_rate = spc_set_rate,


WARNING: multiple messages have this Message-ID (diff)
From: Julia Lawall <Julia.Lawall@lip6.fr>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/8] ARM: vexpress/spc: constify clk_ops structure
Date: Sat, 27 Oct 2018 05:47:36 +0000	[thread overview]
Message-ID: <1540619262-22681-3-git-send-email-Julia.Lawall@lip6.fr> (raw)
In-Reply-To: <1540619262-22681-1-git-send-email-Julia.Lawall@lip6.fr>

The clk_ops structure is only stored in the ops field of a
clk_init_data structure.  This field is const, so the clk_ops
structure can be const as well.

Identified and transformed using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 arch/arm/mach-vexpress/spc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-vexpress/spc.c b/arch/arm/mach-vexpress/spc.c
index 0f5381d13494..611f22de48cb 100644
--- a/arch/arm/mach-vexpress/spc.c
+++ b/arch/arm/mach-vexpress/spc.c
@@ -521,7 +521,7 @@ static int spc_set_rate(struct clk_hw *hw, unsigned long rate,
 	return ve_spc_set_performance(spc->cluster, rate / 1000);
 }
 
-static struct clk_ops clk_spc_ops = {
+static const struct clk_ops clk_spc_ops = {
 	.recalc_rate = spc_recalc_rate,
 	.round_rate = spc_round_rate,
 	.set_rate = spc_set_rate,

WARNING: multiple messages have this Message-ID (diff)
From: Julia.Lawall@lip6.fr (Julia Lawall)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/8] ARM: vexpress/spc: constify clk_ops structure
Date: Sat, 27 Oct 2018 07:47:36 +0200	[thread overview]
Message-ID: <1540619262-22681-3-git-send-email-Julia.Lawall@lip6.fr> (raw)
In-Reply-To: <1540619262-22681-1-git-send-email-Julia.Lawall@lip6.fr>

The clk_ops structure is only stored in the ops field of a
clk_init_data structure.  This field is const, so the clk_ops
structure can be const as well.

Identified and transformed using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 arch/arm/mach-vexpress/spc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-vexpress/spc.c b/arch/arm/mach-vexpress/spc.c
index 0f5381d13494..611f22de48cb 100644
--- a/arch/arm/mach-vexpress/spc.c
+++ b/arch/arm/mach-vexpress/spc.c
@@ -521,7 +521,7 @@ static int spc_set_rate(struct clk_hw *hw, unsigned long rate,
 	return ve_spc_set_performance(spc->cluster, rate / 1000);
 }
 
-static struct clk_ops clk_spc_ops = {
+static const struct clk_ops clk_spc_ops = {
 	.recalc_rate = spc_recalc_rate,
 	.round_rate = spc_round_rate,
 	.set_rate = spc_set_rate,

  parent reply	other threads:[~2018-10-27  6:23 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-27  5:47 [PATCH 0/8] constify clk_ops structure Julia Lawall
2018-10-27  5:47 ` Julia Lawall
2018-10-27  5:47 ` Julia Lawall
2018-10-27  5:47 ` Julia Lawall
2018-10-27  5:47 ` [PATCH 1/8] clk: max77686: " Julia Lawall
2018-10-27  5:47   ` Julia Lawall
2018-10-29  7:49   ` Krzysztof Kozlowski
2018-10-29  7:49     ` Krzysztof Kozlowski
2018-11-06 17:41   ` Stephen Boyd
2018-11-06 17:41     ` Stephen Boyd
2018-10-27  5:47 ` Julia Lawall [this message]
2018-10-27  5:47   ` [PATCH 2/8] ARM: vexpress/spc: " Julia Lawall
2018-10-27  5:47   ` Julia Lawall
2018-10-29  9:17   ` Liviu Dudau
2018-10-29  9:17     ` Liviu Dudau
2018-10-29  9:17     ` Liviu Dudau
2018-10-29  9:34     ` Julia Lawall
2018-10-29  9:34       ` Julia Lawall
2018-10-29  9:34       ` Julia Lawall
2018-10-27  5:47 ` [PATCH 3/8] clk: palmas: " Julia Lawall
2018-10-27  5:47   ` Julia Lawall
2018-11-06 17:42   ` Stephen Boyd
2018-11-06 17:42     ` Stephen Boyd
2018-10-27  5:47 ` [PATCH 4/8] clk: pistachio: constify clk_ops structures Julia Lawall
2018-10-27  5:47   ` Julia Lawall
2018-11-06 17:42   ` Stephen Boyd
2018-11-06 17:42     ` Stephen Boyd
2018-10-27  5:47 ` [PATCH 5/8] clk: pxa: " Julia Lawall
2018-10-27  5:47   ` Julia Lawall
2018-11-06 17:42   ` Stephen Boyd
2018-11-06 17:42     ` Stephen Boyd
2018-10-27  5:47 ` [PATCH 6/8] clk: s2mps11: constify clk_ops structure Julia Lawall
2018-10-27  5:47   ` Julia Lawall
2018-10-29  0:43   ` Chanwoo Choi
2018-10-29  0:43     ` Chanwoo Choi
2018-11-06 17:43   ` Stephen Boyd
2018-11-06 17:43     ` Stephen Boyd
2018-10-27  5:47 ` [PATCH 7/8] drm/imx: imx-tve: " Julia Lawall
2018-10-27  5:47   ` Julia Lawall
2018-10-27  5:47   ` Julia Lawall
2018-10-30  8:57   ` Philipp Zabel
2018-10-30  8:57     ` Philipp Zabel
2018-10-27  5:47 ` [PATCH 8/8] drm/msm/hdmi: " Julia Lawall
2018-10-27  5:47   ` Julia Lawall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1540619262-22681-3-git-send-email-Julia.Lawall@lip6.fr \
    --to=julia.lawall@lip6.fr \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=liviu.dudau@arm.com \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=sudeep.holla@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.