linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: fabf@skynet.be (Fabian Frederick)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 32/35 linux-next] clk: constify of_device_id array
Date: Mon, 16 Mar 2015 20:59:06 +0100	[thread overview]
Message-ID: <1426535949-26107-1-git-send-email-fabf@skynet.be> (raw)
In-Reply-To: <1426533469-25458-1-git-send-email-fabf@skynet.be>

of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 drivers/clk/clk-palmas.c                 | 2 +-
 drivers/clk/st/clkgen-fsyn.c             | 2 +-
 drivers/clk/st/clkgen-mux.c              | 8 ++++----
 drivers/clk/st/clkgen-pll.c              | 4 ++--
 drivers/clk/ti/clk-dra7-atl.c            | 2 +-
 drivers/clk/ti/clockdomain.c             | 2 +-
 drivers/clk/versatile/clk-vexpress-osc.c | 2 +-
 7 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/drivers/clk/clk-palmas.c b/drivers/clk/clk-palmas.c
index 8d45992..45a535a 100644
--- a/drivers/clk/clk-palmas.c
+++ b/drivers/clk/clk-palmas.c
@@ -161,7 +161,7 @@ static struct palmas_clks_of_match_data palmas_of_clk32kgaudio = {
 	},
 };
 
-static struct of_device_id palmas_clks_of_match[] = {
+static const struct of_device_id palmas_clks_of_match[] = {
 	{
 		.compatible = "ti,palmas-clk32kg",
 		.data = &palmas_of_clk32kg,
diff --git a/drivers/clk/st/clkgen-fsyn.c b/drivers/clk/st/clkgen-fsyn.c
index af94ed8..a917c4c 100644
--- a/drivers/clk/st/clkgen-fsyn.c
+++ b/drivers/clk/st/clkgen-fsyn.c
@@ -1057,7 +1057,7 @@ static struct clk * __init st_clk_register_quadfs_fsynth(
 	return clk;
 }
 
-static struct of_device_id quadfs_of_match[] = {
+static const struct of_device_id quadfs_of_match[] = {
 	{
 		.compatible = "st,stih416-quadfs216",
 		.data = &st_fs216c65_416
diff --git a/drivers/clk/st/clkgen-mux.c b/drivers/clk/st/clkgen-mux.c
index 9a15ec3..fdcff10 100644
--- a/drivers/clk/st/clkgen-mux.c
+++ b/drivers/clk/st/clkgen-mux.c
@@ -341,7 +341,7 @@ static struct clkgena_divmux_data st_divmux_c32odf3 = {
 	.fb_start_bit_idx = 24,
 };
 
-static struct of_device_id clkgena_divmux_of_match[] = {
+static const struct of_device_id clkgena_divmux_of_match[] = {
 	{
 		.compatible = "st,clkgena-divmux-c65-hs",
 		.data = &st_divmux_c65hs,
@@ -479,7 +479,7 @@ static struct clkgena_prediv_data prediv_c32_data = {
 	.table = prediv_table16,
 };
 
-static struct of_device_id clkgena_prediv_of_match[] = {
+static const struct of_device_id clkgena_prediv_of_match[] = {
 	{ .compatible = "st,clkgena-prediv-c65", .data = &prediv_c65_data },
 	{ .compatible = "st,clkgena-prediv-c32", .data = &prediv_c32_data },
 	{}
@@ -586,7 +586,7 @@ static struct clkgen_mux_data stih407_a9_mux_data = {
 	.width = 2,
 };
 
-static struct of_device_id mux_of_match[] = {
+static const struct of_device_id mux_of_match[] = {
 	{
 		.compatible = "st,stih416-clkgenc-vcc-hd",
 		.data = &clkgen_mux_c_vcc_hd_416,
@@ -693,7 +693,7 @@ static struct clkgen_vcc_data st_clkgenf_vcc_416 = {
 	.lock = &clkgenf_lock,
 };
 
-static struct of_device_id vcc_of_match[] = {
+static const struct of_device_id vcc_of_match[] = {
 	{ .compatible = "st,stih416-clkgenc", .data = &st_clkgenc_vcc_416 },
 	{ .compatible = "st,stih416-clkgenf", .data = &st_clkgenf_vcc_416 },
 	{}
diff --git a/drivers/clk/st/clkgen-pll.c b/drivers/clk/st/clkgen-pll.c
index 29769d7..d204ba8 100644
--- a/drivers/clk/st/clkgen-pll.c
+++ b/drivers/clk/st/clkgen-pll.c
@@ -593,7 +593,7 @@ static struct clk * __init clkgen_odf_register(const char *parent_name,
 	return clk;
 }
 
-static struct of_device_id c32_pll_of_match[] = {
+static const struct of_device_id c32_pll_of_match[] = {
 	{
 		.compatible = "st,plls-c32-a1x-0",
 		.data = &st_pll3200c32_a1x_0,
@@ -708,7 +708,7 @@ err:
 }
 CLK_OF_DECLARE(clkgen_c32_pll, "st,clkgen-plls-c32", clkgen_c32_pll_setup);
 
-static struct of_device_id c32_gpu_pll_of_match[] = {
+static const struct of_device_id c32_gpu_pll_of_match[] = {
 	{
 		.compatible = "st,stih415-gpu-pll-c32",
 		.data = &st_pll1200c32_gpu_415,
diff --git a/drivers/clk/ti/clk-dra7-atl.c b/drivers/clk/ti/clk-dra7-atl.c
index 59bb4b3..d86bc46 100644
--- a/drivers/clk/ti/clk-dra7-atl.c
+++ b/drivers/clk/ti/clk-dra7-atl.c
@@ -294,7 +294,7 @@ static int of_dra7_atl_clk_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static struct of_device_id of_dra7_atl_clk_match_tbl[] = {
+static const struct of_device_id of_dra7_atl_clk_match_tbl[] = {
 	{ .compatible = "ti,dra7-atl", },
 	{},
 };
diff --git a/drivers/clk/ti/clockdomain.c b/drivers/clk/ti/clockdomain.c
index b4c5fac..35fe108 100644
--- a/drivers/clk/ti/clockdomain.c
+++ b/drivers/clk/ti/clockdomain.c
@@ -52,7 +52,7 @@ static void __init of_ti_clockdomain_setup(struct device_node *node)
 	}
 }
 
-static struct of_device_id ti_clkdm_match_table[] __initdata = {
+static const struct of_device_id ti_clkdm_match_table[] __initconst = {
 	{ .compatible = "ti,clockdomain" },
 	{ }
 };
diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c
index 765f1e0..89c0609 100644
--- a/drivers/clk/versatile/clk-vexpress-osc.c
+++ b/drivers/clk/versatile/clk-vexpress-osc.c
@@ -110,7 +110,7 @@ static int vexpress_osc_probe(struct platform_device *pdev)
 	return 0;
 }
 
-static struct of_device_id vexpress_osc_of_match[] = {
+static const struct of_device_id vexpress_osc_of_match[] = {
 	{ .compatible = "arm,vexpress-osc", },
 	{}
 };
-- 
2.1.0

  parent reply	other threads:[~2015-03-16 19:59 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-16 19:17 [PATCH 00/35 linux-next] constify of_device_id array Fabian Frederick
2015-03-16 19:17 ` [PATCH 05/35 linux-next] tty: " Fabian Frederick
2015-03-16 19:20   ` Timur Tabi
2015-03-16 19:51   ` Peter Korsgaard
2015-03-17  8:10   ` Patrice Chotard
2015-03-16 19:17 ` [PATCH 06/35 linux-next] power: " Fabian Frederick
2015-03-17 11:38   ` Sudeep Holla
2015-03-20 12:32   ` Sebastian Reichel
2015-03-16 19:17 ` [PATCH 08/35 linux-next] dma: " Fabian Frederick
2015-03-18 16:43   ` Vinod Koul
     [not found] ` <1426533651-25586-1-git-send-email-fabf@skynet.be>
2015-03-16 19:20   ` [PATCH 11/35 linux-next] usb: gadget: " Fabian Frederick
2015-03-16 19:20   ` [PATCH 16/35 linux-next] video: " Fabian Frederick
2015-03-16 19:29     ` Timur Tabi
2015-03-16 19:20   ` [PATCH 17/35 linux-next] coresight-replicator: " Fabian Frederick
2015-03-16 19:54 ` [PATCH 22/35 linux-next] soc: ti: " Fabian Frederick
2015-03-16 19:54   ` [PATCH 23/35 linux-next] [media] " Fabian Frederick
2015-03-17  8:12     ` Patrice Chotard
2015-03-16 19:54   ` [PATCH 25/35 linux-next] PCI: " Fabian Frederick
2015-03-16 20:23     ` Sergei Shtylyov
2015-03-16 20:30       ` Fabian Frederick
2015-03-16 19:54   ` [PATCH 26/35 linux-next] hwmon: " Fabian Frederick
2015-03-17  3:55     ` Guenter Roeck
2015-03-16 19:54   ` [PATCH 27/35 linux-next] reset: sti: " Fabian Frederick
2015-03-17  8:13     ` Patrice Chotard
2015-03-17  8:33     ` Maxime Coquelin
2015-03-17  9:52     ` Philipp Zabel
2015-03-16 19:54   ` [PATCH 29/35 linux-next] gpu: " Fabian Frederick
2015-03-16 19:54   ` [PATCH 30/35 linux-next] devfreq: " Fabian Frederick
2015-03-16 19:54   ` [PATCH 31/35 linux-next] EDAC: " Fabian Frederick
2015-03-20 16:57     ` Borislav Petkov
2015-03-16 19:59 ` Fabian Frederick [this message]
2015-03-16 19:59   ` [PATCH 33/35 linux-next] mmc: " Fabian Frederick
2015-03-17  9:49     ` Ulf Hansson
2015-03-20  8:56       ` Ulf Hansson
2015-03-21 20:09         ` Fabian Frederick
2015-03-23 10:06           ` Ulf Hansson
2015-03-16 19:59   ` [PATCH 35/35 linux-next] pinctrl: " Fabian Frederick
2015-03-17  4:03     ` Jean-Christophe PLAGNIOL-VILLARD
2015-03-17  8:15     ` Patrice Chotard
2015-03-17  8:34     ` Maxime Coquelin
2015-03-19  1:58     ` Hongzhou Yang
2015-03-19 18:41       ` Fabian Frederick
2015-03-19 20:55         ` Hongzhou Yang
2015-03-19  7:12     ` Lee Jones
2015-03-27  9:00     ` Linus Walleij
2015-03-18 14:15   ` [PATCH 32/35 linux-next] clk: " Michael Turquette
2015-03-22 10:34     ` Fabian Frederick
2015-03-27  7:19       ` Stephen Boyd
2015-03-31 19:05         ` Fabian Frederick

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=1426535949-26107-1-git-send-email-fabf@skynet.be \
    --to=fabf@skynet.be \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).