summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-05-14 16:12:42 +0200
committerMike Turquette <mturquette@linaro.org>2012-07-12 00:36:44 +0200
commitdc4cd941c900fda27f0146ab615122426229de73 (patch)
treed7d93a06582354d8ba0eda1167186128a505389f
parentclk: Add CLK_IS_BASIC flag to identify basic clocks (diff)
downloadlinux-dc4cd941c900fda27f0146ab615122426229de73.tar.xz
linux-dc4cd941c900fda27f0146ab615122426229de73.zip
clk: Constify struct clk_init_data
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>
-rw-r--r--include/linux/clk-provider.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 0236f58f3e65..06ad617664a2 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -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;
};
/*