]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: Inline clk_get_*_optional
authorSean Anderson <seanga2@gmail.com>
Wed, 22 Dec 2021 17:11:11 +0000 (12:11 -0500)
committerSean Anderson <seanga2@gmail.com>
Fri, 25 Feb 2022 04:58:13 +0000 (23:58 -0500)
commit14cacb019c2d2a97e8407fad08b164bc67def395
treebe2d2cb1a2314d7abf4459827d4aa9d8089d4653
parent011bbfbb304fc6554163df34fbe0d50b88ace968
clk: Inline clk_get_*_optional

The optional varients of clk_get_* functions are just simple wrappers.
Reduce code size a bit by inlining them. On platforms where it is not used
(most of them), it will not be compiled in any more. On platforms where
they are used, the inlined branch should not cause any significant growth.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20211222171114.3091780-3-seanga2@gmail.com
drivers/clk/clk-uclass.c
include/clk.h