* [PATCH 0/8] constify clk_ops structure
@ 2018-10-27 5:47 Julia Lawall
2018-10-27 5:47 ` [PATCH 6/8] clk: s2mps11: " Julia Lawall
0 siblings, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2018-10-27 5:47 UTC (permalink / raw)
To: dri-devel
Cc: linux-samsung-soc, linux-arm-msm, kernel-janitors, linux-kernel,
freedreno, linux-clk, linux-arm-kernel
Declare as const clk_ops structures that are only stored in const fields or
passed to functions with const parameters.
Identified and transformed using Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
---
arch/arm/mach-vexpress/spc.c | 2 +-
drivers/clk/clk-max77686.c | 2 +-
drivers/clk/clk-palmas.c | 2 +-
drivers/clk/clk-s2mps11.c | 2 +-
drivers/clk/pistachio/clk-pll.c | 8 ++++----
drivers/clk/pxa/clk-pxa.c | 4 ++--
drivers/gpu/drm/imx/imx-tve.c | 2 +-
drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c | 2 +-
8 files changed, 12 insertions(+), 12 deletions(-)
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 6/8] clk: s2mps11: constify clk_ops structure
2018-10-27 5:47 [PATCH 0/8] constify clk_ops structure Julia Lawall
@ 2018-10-27 5:47 ` Julia Lawall
2018-10-29 0:43 ` Chanwoo Choi
2018-11-06 17:43 ` Stephen Boyd
0 siblings, 2 replies; 4+ messages in thread
From: Julia Lawall @ 2018-10-27 5:47 UTC (permalink / raw)
To: Sangbeom Kim
Cc: kernel-janitors, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz,
Michael Turquette, Stephen Boyd, linux-kernel, linux-samsung-soc,
linux-clk
The clk_ops structure is only stored in the ops fields of
clk_init_data structures. 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>
---
drivers/clk/clk-s2mps11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c
index 5b419b82f7ca..2ce370c804aa 100644
--- a/drivers/clk/clk-s2mps11.c
+++ b/drivers/clk/clk-s2mps11.c
@@ -71,7 +71,7 @@ static unsigned long s2mps11_clk_recalc_rate(struct clk_hw *hw,
return 32768;
}
-static struct clk_ops s2mps11_clk_ops = {
+static const struct clk_ops s2mps11_clk_ops = {
.prepare = s2mps11_clk_prepare,
.unprepare = s2mps11_clk_unprepare,
.is_prepared = s2mps11_clk_is_prepared,
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 6/8] clk: s2mps11: constify clk_ops structure
2018-10-27 5:47 ` [PATCH 6/8] clk: s2mps11: " Julia Lawall
@ 2018-10-29 0:43 ` Chanwoo Choi
2018-11-06 17:43 ` Stephen Boyd
1 sibling, 0 replies; 4+ messages in thread
From: Chanwoo Choi @ 2018-10-29 0:43 UTC (permalink / raw)
To: Julia Lawall, Sangbeom Kim
Cc: kernel-janitors, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz,
Michael Turquette, Stephen Boyd, linux-kernel, linux-samsung-soc,
linux-clk
On 2018년 10월 27일 14:47, Julia Lawall wrote:
> The clk_ops structure is only stored in the ops fields of
> clk_init_data structures. 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>
>
> ---
> drivers/clk/clk-s2mps11.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/clk-s2mps11.c b/drivers/clk/clk-s2mps11.c
> index 5b419b82f7ca..2ce370c804aa 100644
> --- a/drivers/clk/clk-s2mps11.c
> +++ b/drivers/clk/clk-s2mps11.c
> @@ -71,7 +71,7 @@ static unsigned long s2mps11_clk_recalc_rate(struct clk_hw *hw,
> return 32768;
> }
>
> -static struct clk_ops s2mps11_clk_ops = {
> +static const struct clk_ops s2mps11_clk_ops = {
> .prepare = s2mps11_clk_prepare,
> .unprepare = s2mps11_clk_unprepare,
> .is_prepared = s2mps11_clk_is_prepared,
>
>
>
Looks good to me.
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
--
Best Regards,
Chanwoo Choi
Samsung Electronics
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 6/8] clk: s2mps11: constify clk_ops structure
2018-10-27 5:47 ` [PATCH 6/8] clk: s2mps11: " Julia Lawall
2018-10-29 0:43 ` Chanwoo Choi
@ 2018-11-06 17:43 ` Stephen Boyd
1 sibling, 0 replies; 4+ messages in thread
From: Stephen Boyd @ 2018-11-06 17:43 UTC (permalink / raw)
To: Julia Lawall, Sangbeom Kim
Cc: kernel-janitors, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz,
Michael Turquette, linux-kernel, linux-samsung-soc, linux-clk
Quoting Julia Lawall (2018-10-26 22:47:40)
> The clk_ops structure is only stored in the ops fields of
> clk_init_data structures. 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>
>
> ---
Applied to clk-next
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-06 17:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-27 5:47 [PATCH 0/8] constify clk_ops structure Julia Lawall
2018-10-27 5:47 ` [PATCH 6/8] clk: s2mps11: " Julia Lawall
2018-10-29 0:43 ` Chanwoo Choi
2018-11-06 17:43 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox