Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: sunxi: staticize structures and arrays

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 <emilio@elopez.com.ar>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>

authored by

Emilio López and committed by
Mike Turquette
381c1ccd 89a9456d

+5 -5
+1 -1
drivers/clk/sunxi/clk-sun6i-apb0-gates.c
··· 29 29 .mask = {0x5D}, 30 30 }; 31 31 32 - const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = { 32 + static const struct of_device_id sun6i_a31_apb0_gates_clk_dt_ids[] = { 33 33 { .compatible = "allwinner,sun6i-a31-apb0-gates-clk", .data = &sun6i_a31_apb0_gates }, 34 34 { .compatible = "allwinner,sun8i-a23-apb0-gates-clk", .data = &sun8i_a23_apb0_gates }, 35 35 { /* sentinel */ }
+1 -1
drivers/clk/sunxi/clk-sun6i-apb0.c
··· 57 57 return of_clk_add_provider(np, of_clk_src_simple_get, clk); 58 58 } 59 59 60 - const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = { 60 + static const struct of_device_id sun6i_a31_apb0_clk_dt_ids[] = { 61 61 { .compatible = "allwinner,sun6i-a31-apb0-clk" }, 62 62 { /* sentinel */ } 63 63 };
+2 -2
drivers/clk/sunxi/clk-sun6i-ar100.c
··· 160 160 return 0; 161 161 } 162 162 163 - struct clk_ops ar100_ops = { 163 + static struct clk_ops ar100_ops = { 164 164 .recalc_rate = ar100_recalc_rate, 165 165 .determine_rate = ar100_determine_rate, 166 166 .set_parent = ar100_set_parent, ··· 213 213 return of_clk_add_provider(np, of_clk_src_simple_get, clk); 214 214 } 215 215 216 - const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = { 216 + static const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = { 217 217 { .compatible = "allwinner,sun6i-a31-ar100-clk" }, 218 218 { /* sentinel */ } 219 219 };
+1 -1
drivers/clk/sunxi/clk-sun8i-apb0.c
··· 48 48 return of_clk_add_provider(np, of_clk_src_simple_get, clk); 49 49 } 50 50 51 - const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = { 51 + static const struct of_device_id sun8i_a23_apb0_clk_dt_ids[] = { 52 52 { .compatible = "allwinner,sun8i-a23-apb0-clk" }, 53 53 { /* sentinel */ } 54 54 };