Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f375573c authored by Fabian Frederick's avatar Fabian Frederick Committed by Stephen Boyd
Browse files

clk: constify of_device_id array



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

__initdata updated to __initconst for
static const struct of_device_id ti_clkdm_match_table[]

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent aa571b14
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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",
		.compatible = "ti,palmas-clk32kg",
		.data = &palmas_of_clk32kg,
		.data = &palmas_of_clk32kg,
+1 −1
Original line number Original line Diff line number Diff line
@@ -1057,7 +1057,7 @@ static struct clk * __init st_clk_register_quadfs_fsynth(
	return clk;
	return clk;
}
}


static struct of_device_id quadfs_of_match[] = {
static const struct of_device_id quadfs_of_match[] = {
	{
	{
		.compatible = "st,stih416-quadfs216",
		.compatible = "st,stih416-quadfs216",
		.data = &st_fs216c65_416
		.data = &st_fs216c65_416
+4 −4
Original line number Original line Diff line number Diff line
@@ -341,7 +341,7 @@ static struct clkgena_divmux_data st_divmux_c32odf3 = {
	.fb_start_bit_idx = 24,
	.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",
		.compatible = "st,clkgena-divmux-c65-hs",
		.data = &st_divmux_c65hs,
		.data = &st_divmux_c65hs,
@@ -479,7 +479,7 @@ static struct clkgena_prediv_data prediv_c32_data = {
	.table = prediv_table16,
	.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-c65", .data = &prediv_c65_data },
	{ .compatible = "st,clkgena-prediv-c32", .data = &prediv_c32_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,
	.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",
		.compatible = "st,stih416-clkgenc-vcc-hd",
		.data = &clkgen_mux_c_vcc_hd_416,
		.data = &clkgen_mux_c_vcc_hd_416,
@@ -693,7 +693,7 @@ static struct clkgen_vcc_data st_clkgenf_vcc_416 = {
	.lock = &clkgenf_lock,
	.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-clkgenc", .data = &st_clkgenc_vcc_416 },
	{ .compatible = "st,stih416-clkgenf", .data = &st_clkgenf_vcc_416 },
	{ .compatible = "st,stih416-clkgenf", .data = &st_clkgenf_vcc_416 },
	{}
	{}
+2 −2
Original line number Original line Diff line number Diff line
@@ -593,7 +593,7 @@ static struct clk * __init clkgen_odf_register(const char *parent_name,
	return clk;
	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",
		.compatible = "st,plls-c32-a1x-0",
		.data = &st_pll3200c32_a1x_0,
		.data = &st_pll3200c32_a1x_0,
@@ -708,7 +708,7 @@ static void __init clkgen_c32_pll_setup(struct device_node *np)
}
}
CLK_OF_DECLARE(clkgen_c32_pll, "st,clkgen-plls-c32", clkgen_c32_pll_setup);
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",
		.compatible = "st,stih415-gpu-pll-c32",
		.data = &st_pll1200c32_gpu_415,
		.data = &st_pll1200c32_gpu_415,
+1 −1
Original line number Original line Diff line number Diff line
@@ -294,7 +294,7 @@ static int of_dra7_atl_clk_remove(struct platform_device *pdev)
	return 0;
	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", },
	{ .compatible = "ti,dra7-atl", },
	{},
	{},
};
};
Loading