فهرست منبع

clk: change the type of clk_hw_onecell_data.num to unsigned int

The "num" is the number of clk_hw entries in the structure, so
"unsigned int" would be a better fit.  (size_t looks like data
size we count by byte.)

Besides, struct clk_onecell_data already uses unsigned int for
"clk_num".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Masahiro Yamada 9 سال پیش
والد
کامیت
5963f19ca2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      include/linux/clk-provider.h

+ 1 - 1
include/linux/clk-provider.h

@@ -772,7 +772,7 @@ struct clk_onecell_data {
 };
 };
 
 
 struct clk_hw_onecell_data {
 struct clk_hw_onecell_data {
-	size_t num;
+	unsigned int num;
 	struct clk_hw *hws[];
 	struct clk_hw *hws[];
 };
 };