Skip to content

Commit

Permalink
clk: sunxi: staticize structures and arrays
Browse files Browse the repository at this point in the history
There are some structs and arrays on the driver that are not used
anywhere else. Let's mark them as static.

Signed-off-by: Emilio López <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Signed-off-by: Mike Turquette <[email protected]>
  • Loading branch information
elopez authored and Mike Turquette committed Jul 28, 2014
1 parent 89a9456 commit 381c1cc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/clk/sunxi/clk-sun6i-apb0-gates.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static const struct gates_data sun8i_a23_apb0_gates __initconst = {
.mask = {0x5D},
};

const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = {
static const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = {
{ .compatible = "allwinner,sun6i-a31-apb0-gates-clk", .data = &sun6i_a31_apb0_gates },
{ .compatible = "allwinner,sun8i-a23-apb0-gates-clk", .data = &sun8i_a23_apb0_gates },
{ /* sentinel */ }
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/sunxi/clk-sun6i-apb0.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static int sun6i_a31_apb0_clk_probe(struct platform_device *pdev)
return of_clk_add_provider(np, of_clk_src_simple_get, clk);
}

const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = {
static const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = {
{ .compatible = "allwinner,sun6i-a31-apb0-clk" },
{ /* sentinel */ }
};
Expand Down
4 changes: 2 additions & 2 deletions drivers/clk/sunxi/clk-sun6i-ar100.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static int ar100_set_rate(struct clk_hw *hw, unsigned long rate,
return 0;
}

struct clk_ops ar100_ops = {
static struct clk_ops ar100_ops = {
.recalc_rate = ar100_recalc_rate,
.determine_rate = ar100_determine_rate,
.set_parent = ar100_set_parent,
Expand Down Expand Up @@ -213,7 +213,7 @@ static int sun6i_a31_ar100_clk_probe(struct platform_device *pdev)
return of_clk_add_provider(np, of_clk_src_simple_get, clk);
}

const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = {
static const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = {
{ .compatible = "allwinner,sun6i-a31-ar100-clk" },
{ /* sentinel */ }
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/clk/sunxi/clk-sun8i-apb0.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static int sun8i_a23_apb0_clk_probe(struct platform_device *pdev)
return of_clk_add_provider(np, of_clk_src_simple_get, clk);
}

const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = {
static const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = {
{ .compatible = "allwinner,sun8i-a23-apb0-clk" },
{ /* sentinel */ }
};
Expand Down

0 comments on commit 381c1cc

Please sign in to comment.