瀏覽代碼

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>
Mark Brown 13 年之前
父節點
當前提交
dc4cd941c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/clk-provider.h

+ 1 - 1
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;
 };
 
 /*