clk: sunxi: factors: Consolidate get_factors parameters into a struct
authorChen-Yu Tsai <wens@csie.org>
Mon, 25 Jan 2016 13:15:42 +0000 (21:15 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 27 Jan 2016 17:57:37 +0000 (18:57 +0100)
commitcfa63688603398e8de4315cd626f81516c88a4c4
tree7d843d522ef2ff0046b99cd1b46f8cd1be57f1b9
parent4cbeaebb8af1c86691d1a2d3328d82a01f4380a5
clk: sunxi: factors: Consolidate get_factors parameters into a struct

The .get_factors callback of factors_clk has 6 parameters. To extend
factors_clk in any way that requires adding parameters to .get_factors
would make that list even longer, not to mention changing all the
function declarations.

Do this once now and consolidate all the parameters into a struct.
Also drop the space before function pointer arguments, since checkpatch
complains.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-factors.c
drivers/clk/sunxi/clk-factors.h
drivers/clk/sunxi/clk-mod0.c
drivers/clk/sunxi/clk-sun8i-mbus.c
drivers/clk/sunxi/clk-sun9i-core.c
drivers/clk/sunxi/clk-sunxi.c