]> git.baikalelectronics.ru Git - uboot.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)
commitc015345eacb5c7e09f262cbb9ed7643d4eb60855
treebe2d2cb1a2314d7abf4459827d4aa9d8089d4653
parenta34c27af887c07000c94c1b58e1e34f933c17fed
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