projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c72f288
)
clk: change the type of clk_hw_onecell_data.num to unsigned int
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Fri, 23 Sep 2016 12:29:36 +0000
(21:29 +0900)
committer
Stephen Boyd
<sboyd@codeaurora.org>
Fri, 23 Sep 2016 21:44:03 +0000
(14:44 -0700)
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>
include/linux/clk-provider.h
patch
|
blob
|
history
diff --git
a/include/linux/clk-provider.h
b/include/linux/clk-provider.h
index
37b8fdc
..
af59638
100644
(file)
--- a/
include/linux/clk-provider.h
+++ b/
include/linux/clk-provider.h
@@
-772,7
+772,7
@@
struct clk_onecell_data {
};
struct clk_hw_onecell_data {
-
size_
t num;
+
unsigned in
t num;
struct clk_hw *hws[];
};