clk: Constify struct clk_init_data
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 14 May 2012 14:12:42 +0000 (15:12 +0100)
committerMike Turquette <mturquette@linaro.org>
Wed, 11 Jul 2012 22:36:44 +0000 (15:36 -0700)
Allow drivers to declare their clk_init_data const, the framework really
shouldn't be modifying the data.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
include/linux/clk-provider.h

index 0236f58f3e6543879ad672d524878051f8b8b59f..06ad617664a2dc7e883fcd1933b16917317404be 100644 (file)
@@ -144,7 +144,7 @@ struct clk_init_data {
  */
 struct clk_hw {
        struct clk *clk;
-       struct clk_init_data *init;
+       const struct clk_init_data *init;
 };
 
 /*