Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Masahiro Yamada and committed by
Stephen Boyd
5963f19c c72f2883

+1 -1
+1 -1
include/linux/clk-provider.h
··· 772 772 }; 773 773 774 774 struct clk_hw_onecell_data { 775 - size_t num; 775 + unsigned int num; 776 776 struct clk_hw *hws[]; 777 777 }; 778 778