OSDN Git Service

clk: sunxi: Make clocks setup functions take const pointer
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 2 Feb 2016 08:47:11 +0000 (09:47 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 11 Feb 2016 17:17:04 +0000 (18:17 +0100)
commit5b5226d17df6175f1f0dd1a1a37e36770ed00116
tree25d5529085e4fc317f82230a0ec42607d9c2ebf4
parent96f185ac9a90264463254366f45d7b46482eec96
clk: sunxi: Make clocks setup functions take const pointer

All the data structure that we pass to the clocks setup functions are
declared const, while our setup functions expects a regular pointer. This
was hidden by the fact that we cast a void * pointer back to these
structures, which made it go unnoticed.

Fix the functions prototype.

Acked-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/clk/sunxi/clk-sunxi.c