]> git.baikalelectronics.ru Git - uboot.git/commit
clk: change return type of clk_get_parent_rate from long long to ulong
authorMichal Suchanek <msuchanek@suse.de>
Wed, 28 Sep 2022 10:37:57 +0000 (12:37 +0200)
committerSean Anderson <seanga2@gmail.com>
Wed, 19 Oct 2022 16:06:41 +0000 (12:06 -0400)
commitfd39a2199704a14c055ff644a2733cc25277acc7
tree338caddfcc8331933608701f9674f32a09fa85d0
parent295e89baf1de5844dbac7eb3797dbc3e7adda699
clk: change return type of clk_get_parent_rate from long long to ulong

All functions getting and setting clock rate use ulong for rate, only
clk_get_parent_rate is an exception. Change the return value to match
other clock rate funcrions.

Most users directly assign the rate to unsigned long anyway, and the few
users that use u64 (not s64) multiply the rate so they may need the
extra bits for the result in their use case.

Fixes: 0f34355834 ("dm: clk: Define clk_get_parent_rate() for clk operations")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20220928103757.11870-1-msuchanek@suse.de
drivers/clk/clk-uclass.c
include/clk.h